Function at 0x6519d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x86c3ad
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0xa5d1d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor eax, eax
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.005fc950
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov edi, dword [ebp + 0xc]
mov dword [esi], vtable.wxGDIPlusPenData.0
mov dword [esi + 0x18], 0
push 8
movsd xmm0, qword [edi + 0x30]
mov dword [ebp - 4], 0
movsd qword [esi + 0x20], xmm0
call fcn.005fab90
mov dword [ebp + 8], eax
mov dword [ebp - 0x24], eax
test eax, eax
je 0x651aeb
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], vtable.wxObject.0
mov dword [ebp - 0x38], eax
test eax, eax
je 0x651a6b
inc dword [eax + 4]
mov eax, dword [edi + 8]
mov dword [ebp - 0x34], eax
mov al, byte [edi + 0xc]
mov byte [ebp - 0x30], al
mov al, byte [edi + 0xd]
mov byte [ebp - 0x2f], al
mov al, byte [edi + 0xe]
mov byte [ebp - 0x2e], al
mov al, byte [edi + 0xf]
mov byte [ebp - 0x2d], al
mov al, byte [edi + 0x10]
mov dword [ebp - 0x3c], vtable.wxColour.0
mov byte [ebp - 0x2c], al
movsd xmm0, qword [esi + 0x20]
mov eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
cvtpd2ps xmm0, xmm0
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
movss dword [ebp - 0x1c], xmm0
call fcn.00658d70
mov ecx, dword [ebp + 8]
add esp, 8
movss xmm0, dword [ebp - 0x1c]
push ecx
push 0
push ecx
mov dword [ecx], 0
movss dword [esp], xmm0
push dword [eax]
call fcn.005fb050
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, ecx
jmp 0x651af0
xor eax, eax
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x18], eax
mov dword [ebp - 4], 0
test cl, 1
je 0x651b25
and ecx, 0xfffffffe
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x3c], vtable.wxObject.0
call fcn.0073d950
mov eax, dword [esi + 0x18]
mov byte [ebp - 4], 0
mov dword [ebp + 8], eax
mov ecx, dword [edi + 0x24]
sub ecx, 0x82
je 0x651b43
sub ecx, 1
je 0x651b3c
sub ecx, 1
xor ecx, ecx
jmp 0x651b48
mov ecx, 1
jmp 0x651b48
mov ecx, 2
push 0
push ecx
push ecx
push dword [eax]
call fcn.005fc2a0
test eax, eax
je 0x651b5d
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x20]
sub eax, 0x78
je 0x651b7a
sub eax, 1
je 0x651b6f
sub eax, 1
je 0x651b73
xor eax, eax
jmp 0x651b7f
mov eax, 2
jmp 0x651b7f
mov eax, 1
mov ecx, dword [esi + 0x18]
push eax
mov dword [ebp + 8], ecx
push dword [ecx]
call fcn.005fc2d0
mov ecx, eax
test ecx, ecx
je 0x651b99
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x18]
push 0
mov dword [ebp + 8], eax
push dword [eax]
call fcn.005fc270
mov ecx, eax
test ecx, ecx
je 0x651bb4
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x1c]
lea ecx, [eax - 0x64]
cmp ecx, 0xa
ja case.0x651bc3.106
jmp dword [ecx*4 + 0x652050]
mov ecx, dword [esi + 0x18]
mov eax, 2
push eax
mov dword [ebp + 0xc], ecx
push dword [ecx]
call fcn.005fc270
jmp 0x651f98
mov ecx, dword [esi + 0x18]
mov eax, 1
push eax
mov dword [ebp + 0xc], ecx
push dword [ecx]
call fcn.005fc270
jmp 0x651f98
mov ecx, dword [esi + 0x18]
mov eax, 3
push eax
mov dword [ebp + 0xc], ecx
push dword [ecx]
call fcn.005fc270
jmp 0x651f98
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
test ecx, ecx
je 0x651e04
test eax, eax
jle 0x651e04
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00800701
mov ecx, dword [ebp + 8]
add esp, 4
xor edx, edx
mov dword [ebp - 0x14], eax
cmp ecx, 0x10
jb 0x651d35
lea esi, [ecx - 1]
lea esi, [eax + esi*4]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x10]
dec esi
add ecx, esi
mov esi, dword [ebp - 0x18]
cmp eax, ecx
ja 0x651c7a
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jae 0x651d32
mov ecx, dword [ebp + 8]
mov eax, ecx
and eax, reloc.OLEAUT32.dll_SafeArrayDestroy
jns 0x651c8b
dec eax
or eax, 0xfffffff0
inc eax
mov edi, ecx
sub edi, eax
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
add eax, 0x20
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
nop word [eax + eax]
movd xmm0, dword [eax - 8]
lea edi, [edi + 0x40]
punpcklbw xmm0, xmm0
lea eax, [eax + 0x10]
punpcklwd xmm0, xmm0
add edx, 0x10
psrad xmm0, 0x18
cvtdq2ps xmm0, xmm0
movups xmmword [edi - 0x60], xmm0
movd xmm0, dword [eax - 0x14]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
cvtdq2ps xmm0, xmm0
movups xmmword [edi - 0x50], xmm0
movd xmm0, dword [eax - 0x10]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
cvtdq2ps xmm0, xmm0
movups xmmword [edi - 0x40], xmm0
movd xmm0, dword [eax - 0xc]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
cvtdq2ps xmm0, xmm0
movups xmmword [edi - 0x30], xmm0
cmp edx, dword [ebp - 0x24]
jl 0x651cb0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
cmp edx, ecx
jge 0x651ddc
jmp 0x651d35
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, edx
cmp eax, 4
jl 0x651dbb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
sub eax, edx
mov edi, dword [ebp - 0x14]
sub eax, 4
add ecx, 2
shr eax, 2
add ecx, edx
add edi, 8
inc eax
mov dword [ebp - 0x24], eax
mov esi, eax
lea edi, [edi + edx*4]
lea edx, [edx + eax*4]
movsx eax, byte [ecx - 2]
lea edi, [edi + 0x10]
lea ecx, [ecx + 4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi - 0x18], xmm0
movsx eax, byte [ecx - 5]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi - 0x14], xmm0
movsx eax, byte [ecx - 4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi - 0x10], xmm0
movsx eax, byte [ecx - 3]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi - 0xc], xmm0
sub esi, 1
jne 0x651d63
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
cmp edx, ecx
jge 0x651ddc
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
movsx eax, byte [edx + esi]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + edx*4], xmm0
inc edx
cmp edx, ecx
jl 0x651dc1
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x18]
push ecx
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
push dword [eax]
call fcn.005fc240
mov ecx, eax
test ecx, ecx
je 0x651df9
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ecx
push dword [ebp - 0x14]
call fcn.008006fc
add esp, 4
mov ecx, dword [esi + 0x18]
mov eax, 5
push eax
mov dword [ebp + 0xc], ecx
push dword [ecx]
call fcn.005fc270
jmp 0x651f98
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x28], vtable.wxObject.0
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x651e33
inc dword [ecx + 4]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.wxBitmap.0
mov byte [ebp - 4], 5
test ecx, ecx
je 0x651ea7
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x651ea7
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x651e59
mov dword [ebp + 0xc], eax
jmp 0x651e5f
mov eax, dword [eax + 0x20]
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x28]
call fcn.0053bf00
mov ecx, eax
call fcn.005ca080
push eax
push dword [ebp + 0xc]
call fcn.00656050
add esp, 8
mov dword [esi + 0x14], eax
push 0xc
call fcn.005fab90
mov dword [ebp + 0xc], eax
test eax, eax
je 0x651e99
push 0
push dword [esi + 0x14]
mov ecx, eax
call fcn.00650c10
jmp 0x651e9b
xor eax, eax
mov ecx, dword [esi + 0x18]
push eax
mov dword [esi + 0xc], eax
call fcn.00658360
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00478fc0
jmp case.0x651bc3.100
cmp eax, 0x6f
jl case.0x651bc3.100
cmp eax, 0x74
jg case.0x651bc3.100
add eax, 0xffffff91
cmp eax, 5
ja case.0x651ed2.115
jmp dword [eax*4 + 0x65207c]
mov dword [ebp + 0xc], 3
jmp 0x651f0d
mov dword [ebp + 0xc], 5
jmp 0x651f0d
mov dword [ebp + 0xc], 2
jmp 0x651f0d
mov dword [ebp + 0xc], 4
jmp 0x651f0d
mov dword [ebp + 0xc], 1
jmp 0x651f0d
mov dword [ebp + 0xc], 0
push 0xc
call fcn.005fab90
mov dword [ebp - 0x24], eax
test eax, eax
je 0x651f5c
lea eax, [ebp - 0x3c]
mov dword [ebp + 8], 0xffffff
push eax
mov ecx, edi
call fcn.00656360
mov ecx, dword [ebp - 0x10]
or ecx, 2
mov byte [ebp - 4], 7
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00658d70
mov ecx, dword [ebp - 0x24]
add esp, 8
push eax
push dword [ebp + 0xc]
call fcn.00650b80
jmp 0x651f5e
xor eax, eax
test byte [ebp - 0x10], 2
mov dword [esi + 0xc], eax
mov dword [ebp - 4], 0
je 0x651f88
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
mov dword [ebp - 0x3c], vtable.wxObject.0
call fcn.0073d950
mov eax, dword [esi + 0xc]
mov byte [ebp - 4], 0
mov ecx, dword [esi + 0x18]
push dword [eax + 4]
mov dword [ebp + 0xc], ecx
push dword [ecx]
call fcn.005fc210
mov ecx, eax
test ecx, ecx
je case.0x651bc3.100
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x38]
sub eax, 1
je 0x651ff3
sub eax, 1
jne 0x65203b
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x651fc2
mov eax, dword [ecx]
push 1
call dword [eax]
movups xmm0, xmmword [edi + 0x58]
push 0xa5bd58
lea eax, [edi + 0x68]
mov ecx, esi
push eax
sub esp, 0x28
movups xmmword [esp + 0x18], xmm0
movups xmm0, xmmword [edi + 0x48]
movups xmmword [esp + 8], xmm0
movsd xmm0, qword [edi + 0x40]
movsd qword [esp], xmm0
call fcn.00654ce0
jmp 0x652024
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x652000
mov eax, dword [ecx]
push 1
call dword [eax]
movups xmm0, xmmword [edi + 0x50]
push 0xa5bd58
lea eax, [edi + 0x68]
mov ecx, esi
push eax
sub esp, 0x20
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [edi + 0x40]
movups xmmword [esp], xmm0
call fcn.006544f0
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x18]
push dword [eax + 4]
push dword [edi]
call fcn.005fc210
test eax, eax
je 0x65203b
mov dword [edi + 4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8