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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x86c5cd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0xa5e224]
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.005fca90
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.005face0
mov dword [ebp + 8], eax
mov dword [ebp - 0x24], eax
test eax, eax
je 0x651c5b
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], vtable.wxObject.0
mov dword [ebp - 0x38], eax
test eax, eax
je 0x651bdb
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.00658ef0
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.005fb190
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, ecx
jmp 0x651c60
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 0x651c95
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.0073da90
mov eax, dword [esi + 0x18]
mov byte [ebp - 4], 0
mov dword [ebp + 8], eax
mov ecx, dword [edi + 0x24]
sub ecx, 0x82
je 0x651cb3
sub ecx, 1
je 0x651cac
sub ecx, 1
xor ecx, ecx
jmp 0x651cb8
mov ecx, 1
jmp 0x651cb8
mov ecx, 2
push 0
push ecx
push ecx
push dword [eax]
call fcn.005fc3e0
test eax, eax
je 0x651ccd
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x20]
sub eax, 0x78
je 0x651cea
sub eax, 1
je 0x651cdf
sub eax, 1
je 0x651ce3
xor eax, eax
jmp 0x651cef
mov eax, 2
jmp 0x651cef
mov eax, 1
mov ecx, dword [esi + 0x18]
push eax
mov dword [ebp + 8], ecx
push dword [ecx]
call fcn.005fc410
mov ecx, eax
test ecx, ecx
je 0x651d09
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.005fc3b0
mov ecx, eax
test ecx, ecx
je 0x651d24
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x1c]
lea ecx, [eax - 0x64]
cmp ecx, 0xa
ja case.0x651d33.106
jmp dword [ecx*4 + 0x6521c0]
mov ecx, dword [esi + 0x18]
mov eax, 2
push eax
mov dword [ebp + 0xc], ecx
push dword [ecx]
call fcn.005fc3b0
jmp 0x652108
mov ecx, dword [esi + 0x18]
mov eax, 1
push eax
mov dword [ebp + 0xc], ecx
push dword [ecx]
call fcn.005fc3b0
jmp 0x652108
mov ecx, dword [esi + 0x18]
mov eax, 3
push eax
mov dword [ebp + 0xc], ecx
push dword [ecx]
call fcn.005fc3b0
jmp 0x652108
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
test ecx, ecx
je 0x651f74
test eax, eax
jle 0x651f74
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.008008c1
mov ecx, dword [ebp + 8]
add esp, 4
xor edx, edx
mov dword [ebp - 0x14], eax
cmp ecx, 0x10
jb 0x651ea5
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 0x651dea
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jae 0x651ea2
mov ecx, dword [ebp + 8]
mov eax, ecx
and eax, reloc.OLEAUT32.dll_SafeArrayDestroy
jns 0x651dfb
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 0x651e20
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
cmp edx, ecx
jge 0x651f4c
jmp 0x651ea5
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, edx
cmp eax, 4
jl 0x651f2b
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 0x651ed3
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
cmp edx, ecx
jge 0x651f4c
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 0x651f31
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.005fc380
mov ecx, eax
test ecx, ecx
je 0x651f69
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ecx
push dword [ebp - 0x14]
call fcn.008008bc
add esp, 4
mov ecx, dword [esi + 0x18]
mov eax, 5
push eax
mov dword [ebp + 0xc], ecx
push dword [ecx]
call fcn.005fc3b0
jmp 0x652108
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x28], vtable.wxObject.0
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x651fa3
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 0x652017
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x652017
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x651fc9
mov dword [ebp + 0xc], eax
jmp 0x651fcf
mov eax, dword [eax + 0x20]
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x28]
call fcn.0053c080
mov ecx, eax
call fcn.005ca1e0
push eax
push dword [ebp + 0xc]
call fcn.006561d0
add esp, 8
mov dword [esi + 0x14], eax
push 0xc
call fcn.005face0
mov dword [ebp + 0xc], eax
test eax, eax
je 0x652009
push 0
push dword [esi + 0x14]
mov ecx, eax
call fcn.00650d80
jmp 0x65200b
xor eax, eax
mov ecx, dword [esi + 0x18]
push eax
mov dword [esi + 0xc], eax
call fcn.006584e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004790e0
jmp case.0x651d33.100
cmp eax, 0x6f
jl case.0x651d33.100
cmp eax, 0x74
jg case.0x651d33.100
add eax, 0xffffff91
cmp eax, 5
ja case.0x652042.115
jmp dword [eax*4 + 0x6521ec]
mov dword [ebp + 0xc], 3
jmp 0x65207d
mov dword [ebp + 0xc], 5
jmp 0x65207d
mov dword [ebp + 0xc], 2
jmp 0x65207d
mov dword [ebp + 0xc], 4
jmp 0x65207d
mov dword [ebp + 0xc], 1
jmp 0x65207d
mov dword [ebp + 0xc], 0
push 0xc
call fcn.005face0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x6520cc
lea eax, [ebp - 0x3c]
mov dword [ebp + 8], 0xffffff
push eax
mov ecx, edi
call fcn.006564e0
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.00658ef0
mov ecx, dword [ebp - 0x24]
add esp, 8
push eax
push dword [ebp + 0xc]
call fcn.00650cf0
jmp 0x6520ce
xor eax, eax
test byte [ebp - 0x10], 2
mov dword [esi + 0xc], eax
mov dword [ebp - 4], 0
je 0x6520f8
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
mov dword [ebp - 0x3c], vtable.wxObject.0
call fcn.0073da90
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.005fc350
mov ecx, eax
test ecx, ecx
je case.0x651d33.100
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x38]
sub eax, 1
je 0x652163
sub eax, 1
jne 0x6521ab
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x652132
mov eax, dword [ecx]
push 1
call dword [eax]
movups xmm0, xmmword [edi + 0x58]
push 0xa5cdb0
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.00654e60
jmp 0x652194
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x652170
mov eax, dword [ecx]
push 1
call dword [eax]
movups xmm0, xmmword [edi + 0x50]
push 0xa5cdb0
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.00654670
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x18]
push dword [eax + 4]
push dword [edi]
call fcn.005fc350
test eax, eax
je 0x6521ab
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