Function at 0x40ae50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b8be1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x78]
xor edx, edx
push esi
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x78]
push edi
mov ebx, 1
cmp esi, ebx
mov edi, ecx
mov dword [esp + 0x48], edi
jne 0x40ae9c
cmp ebp, ebx
jne 0x40ae9c
mov esi, dword [esp + 0x78]
push esi
call fcn.00409de0
jmp 0x40b31c
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], vtable.wxImage.0
mov eax, dword [edi + 4]
cmp eax, edx
mov dword [esp + 0x70], ebx
je 0x40b2eb
mov cl, byte [eax + 0x1c]
test cl, cl
je 0x40b2eb
cmp dword [eax + 8], edx
je 0x40b2eb
cmp dword [eax + 0xc], edx
je 0x40b2eb
cmp esi, edx
jle 0x40b2f2
cmp ebp, edx
jle 0x40b2f2
mov ecx, dword [eax + 0xc]
cmp ecx, edx
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
jle 0x40b2eb
cmp eax, edx
jle 0x40b2eb
cdq
idiv esi
push 0
mov ebx, eax
mov eax, ecx
cdq
idiv ebp
lea ecx, [esp + 0x64]
mov dword [esp + 0x58], ebx
mov esi, eax
push esi
push ebx
call fcn.00409d00
lea ecx, [esp + 0x60]
call fcn.00409700
test eax, eax
jne 0x40af32
lea ecx, [esp + 0x60]
push ecx
jmp 0x40b2d6
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x10]
mov ebx, eax
mov al, byte [ecx + 0x14]
xor ebp, ebp
test al, al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebp
mov eax, ecx
je 0x40af90
mov cl, byte [eax + 0x15]
xor edx, edx
mov dl, byte [eax + 0x16]
movzx eax, byte [eax + 0x17]
push eax
mov byte [esp + 0x15], cl
mov byte [esp + 0x14], 1
push edx
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1f], al
call fcn.004097c0
jmp 0x40afb1
mov ebp, dword [eax + 0x18]
test ebp, ebp
je 0x40afb1
push 0
push 0
lea ecx, [esp + 0x68]
call fcn.00409730
lea ecx, [esp + 0x60]
call fcn.00409790
mov dword [esp + 0x20], eax
test esi, esi
jle 0x40b180
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x80]
imul ecx, edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x54]
xor esi, esi
cmp eax, esi
jle 0x40b167
mov dword [esp + 0x34], esi
mov dword [esp + 0x4c], eax
jmp 0x40aff1
xor esi, esi
xor ecx, ecx
cmp edx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
jle 0x40b0e4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x40b020
mov edx, dword [esp + 0x7c]
xor edi, edi
test edx, edx
jle 0x40b0bf
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
lea esi, [ecx + eax]
lea eax, [edx + esi*2]
lea ecx, [esi + eax + 2]
mov dl, byte [ecx - 2]
or al, 0xff
test ebp, ebp
je 0x40b04f
lea eax, [esi + edi]
mov al, byte [eax + ebp]
mov bl, byte [esp + 0x10]
test bl, bl
je 0x40b06e
cmp dl, byte [esp + 0x11]
jne 0x40b06e
mov dl, byte [ecx - 1]
cmp dl, byte [esp + 0x12]
jne 0x40b06e
mov dl, byte [ecx]
cmp dl, byte [esp + 0x13]
je 0x40b0ab
test al, al
jbe 0x40b095
movzx edx, byte [ecx - 2]
mov ebx, dword [esp + 0x24]
add ebx, edx
movzx edx, byte [ecx - 1]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x28]
add ebx, edx
movzx edx, byte [ecx]
mov dword [esp + 0x28], ebx
add dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
movzx eax, al
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
inc edi
add ecx, 3
cmp edi, eax
jl 0x40b040
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
add eax, esi
dec edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jne 0x40b020
test ecx, ecx
jne 0x40b0fd
mov edi, dword [esp + 0x48]
mov ecx, dword [edi + 4]
mov dl, byte [ecx + 0x15]
mov byte [ebx], dl
mov eax, dword [edi + 4]
mov cl, byte [eax + 0x16]
inc ebx
mov byte [ebx], cl
mov edx, dword [edi + 4]
mov al, byte [edx + 0x17]
jmp 0x40b137
test ebp, ebp
je 0x40b115
mov eax, dword [esp + 0x1c]
xor edx, edx
div ecx
mov edx, dword [esp + 0x20]
inc edx
mov dword [esp + 0x20], edx
mov byte [edx - 1], al
mov eax, dword [esp + 0x24]
xor edx, edx
div ecx
xor edx, edx
mov edi, dword [esp + 0x48]
inc ebx
mov byte [ebx - 1], al
mov eax, dword [esp + 0x28]
div ecx
xor edx, edx
mov byte [ebx], al
mov eax, dword [esp + 0x2c]
div ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x7c]
inc ebx
mov byte [ebx], al
mov eax, dword [esp + 0x4c]
add edx, ecx
inc ebx
dec eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], eax
jne 0x40afef
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x50]
add esi, ecx
dec eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x50], eax
jne 0x40afd7
push str.HotSpotX
lea ecx, [esp + 0x54]
call fcn.00402160
lea edx, [esp + 0x50]
push edx
mov ecx, edi
mov byte [esp + 0x74], 2
call fcn.00409960
mov esi, dword [sym.imp.MSVCR71.dll_free]
mov bl, al
mov eax, dword [esp + 0x50]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x70], 1
je 0x40b1c6
dec ecx
mov dword [eax], ecx
jne 0x40b1c6
push eax
call esi
add esp, 4
test bl, bl
je 0x40b227
push str.HotSpotX
lea ecx, [esp + 0x50]
call fcn.00402160
push str.HotSpotX
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], 3
call fcn.00402160
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
mov byte [esp + 0x74], 4
call fcn.0040a5b0
cdq
idiv dword [esp + 0x7c]
lea ecx, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.0040a450
lea ecx, [esp + 0x50]
call fcn.0041ef00
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 1
call fcn.0041ef00
push str.HotSpotY
lea ecx, [esp + 0x80]
call fcn.00402160
lea edx, [esp + 0x7c]
push edx
mov ecx, edi
mov byte [esp + 0x74], 5
call fcn.00409960
mov bl, al
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x70], 1
je 0x40b26a
dec ecx
mov dword [eax], ecx
jne 0x40b26a
push eax
call esi
add esp, 4
test bl, bl
je 0x40b2d1
push str.HotSpotY
lea ecx, [esp + 0x54]
call fcn.00402160
push str.HotSpotY
lea ecx, [esp + 0x80]
mov byte [esp + 0x74], 6
call fcn.00402160
lea eax, [esp + 0x50]
push eax
mov ecx, edi
mov byte [esp + 0x74], 7
call fcn.0040a5b0
cdq
idiv dword [esp + 0x80]
lea ecx, [esp + 0x7c]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.0040a450
lea ecx, [esp + 0x7c]
call fcn.0041ef00
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 1
call fcn.0041ef00
lea edx, [esp + 0x60]
push edx
mov esi, dword [esp + 0x7c]
mov ecx, esi
call fcn.00409cb0
mov dword [esp + 0x14], 1
jmp 0x40b306
lea eax, [esp + 0x60]
push eax
jmp 0x40b2f7
lea ecx, [esp + 0x60]
push ecx
mov esi, dword [esp + 0x7c]
mov ecx, esi
call fcn.00409cb0
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x60]
mov byte [esp + 0x70], 0
mov dword [esp + 0x60], vtable.wxObject.0
call fcn.00474100
mov ecx, dword [esp + 0x68]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc