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

Disassembly:
push 0xffffffffffffffff
push 0x6e9a6a
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x68], edi
mov ebx, dword [esp + 0xe0]
mov esi, dword [esp + 0xdc]
mov edx, dword [esp + 0xe4]
mov dword [esp + 0x44], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x28], 0
cmp ebx, 1
jne 0x4c5755
cmp edx, 1
jne 0x4c5755
mov dword [esi], vtable.wxObject.0
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
test ecx, ecx
je 0x4c574a
inc dword [ecx + 4]
mov dword [esi], vtable.wxImage.0
jmp 0x4c5d3b
xor ecx, ecx
mov dword [esp + 0x14], vtable.wxImage.0
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 4]
mov dword [esp + 0xd4], 1
test eax, eax
je 0x4c5cc5
cmp byte [eax + 0x20], cl
je 0x4c5cc5
cmp dword [eax + 8], ecx
je 0x4c5cc5
cmp dword [eax + 0xc], ecx
je 0x4c5cc5
test ebx, ebx
jle 0x4c5ca6
test edx, edx
jle 0x4c5ca6
mov esi, dword [eax + 0xc]
mov ebp, dword [eax + 8]
mov dword [esp + 0x7c], ebp
test esi, esi
jle 0x4c5c61
test ebp, ebp
jle 0x4c5c61
mov eax, ebp
cdq
idiv ebx
push 0
mov ecx, eax
mov eax, esi
cdq
idiv dword [esp + 0xe8]
mov dword [esp + 0x68], ecx
push eax
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], eax
call fcn.004bd4b0
lea ecx, [esp + 0x14]
call fcn.004be4e0
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x4c5bee
mov ecx, dword [edi + 4]
mov byte [esp + 0x1f], 0
mov byte [esp + 0x60], 0
mov byte [esp + 0x50], 0
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x78], eax
xor eax, eax
mov byte [esp + 0x58], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], eax
cmp byte [ecx + 0x18], al
je 0x4c5856
mov al, byte [ecx + 0x19]
mov dl, byte [ecx + 0x1a]
mov cl, byte [ecx + 0x1b]
push ecx
push edx
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x2b], 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x5c], edx
call fcn.004c49d0
xor ecx, ecx
jmp 0x4c587f
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4c587f
push 0
push 0
lea ecx, [esp + 0x1c]
call fcn.004c48b0
lea ecx, [esp + 0x14]
call fcn.004be370
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x3c]
test edx, edx
jle 0x4c5a5e
xor eax, eax
imul ebp, dword [esp + 0xe4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x80], ebp
mov ebp, dword [esp + 0x64]
test ebp, ebp
jle 0x4c5a48
xor edx, edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x24], edx
jmp 0x4c58c0
xor eax, eax
mov dword [esp + 0x38], 0
xor ebp, ebp
mov dword [esp + 0x48], 0
xor edi, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x74], edi
cmp dword [esp + 0xe4], eax
jle 0x4c5a03
mov esi, dword [esp + 0xe4]
mov edx, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x70], esi
xor esi, esi
test ebx, ebx
jle 0x4c59a0
mov edx, dword [esp + 0x24]
add edx, eax
mov eax, dword [esp + 0x78]
lea eax, [eax + edx*2]
add eax, 2
add eax, edx
mov bl, byte [eax - 2]
or dl, 0xff
mov dh, byte [eax - 1]
mov bh, byte [eax]
test ecx, ecx
je 0x4c5948
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x20]
add ecx, esi
mov edi, dword [esp + 0x74]
mov dl, byte [ecx + ebp]
mov ebp, dword [esp + 0x6c]
cmp byte [esp + 0x1f], 0
je 0x4c5961
cmp bl, byte [esp + 0x60]
jne 0x4c5961
cmp dh, byte [esp + 0x50]
jne 0x4c5961
cmp bh, byte [esp + 0x58]
je 0x4c5988
test dl, dl
je 0x4c597a
movzx ecx, bl
add dword [esp + 0x38], ecx
movzx ecx, dh
add dword [esp + 0x48], ecx
movzx ecx, bh
add dword [esp + 0x40], ecx
movzx ecx, dl
add ebp, ecx
inc edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x74], edi
mov ebx, dword [esp + 0x54]
inc esi
mov ecx, dword [esp + 0x20]
add eax, 3
cmp esi, ebx
jl 0x4c5920
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x70]
add eax, dword [esp + 0x7c]
dec edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x70], edx
jne 0x4c5904
test edi, edi
je 0x4c59fb
test ecx, ecx
je 0x4c59d0
xor edx, edx
mov eax, ebp
div edi
mov edx, dword [esp + 0x30]
mov byte [edx], al
inc edx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x38]
xor edx, edx
div edi
mov esi, dword [esp + 0x2c]
xor edx, edx
mov byte [esi], al
mov eax, dword [esp + 0x48]
div edi
xor edx, edx
mov byte [esi + 1], al
mov eax, dword [esp + 0x40]
div edi
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x68]
jmp 0x4c5a22
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 4]
mov al, byte [eax + 0x19]
mov byte [esi], al
mov eax, dword [edi + 4]
mov al, byte [eax + 0x1a]
mov byte [esi + 1], al
mov eax, dword [edi + 4]
mov al, byte [eax + 0x1b]
mov byte [esi + 2], al
add edx, ebx
add esi, 3
mov dword [esp + 0x24], edx
dec dword [esp + 0x5c]
mov dword [esp + 0x2c], esi
jne 0x4c58c0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x64]
add eax, dword [esp + 0x80]
dec edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
jne 0x4c58a4
push str.HotSpotX
lea ecx, [esp + 0x8c]
call fcn.00418140
lea eax, [esp + 0x88]
mov byte [esp + 0xd4], 2
push eax
mov ecx, edi
call fcn.004bf1b0
lea ecx, [esp + 0x88]
mov byte [esp + 0xd4], 1
mov bl, al
call fcn.00418210
test bl, bl
je 0x4c5b18
push str.HotSpotX
lea ecx, [esp + 0xac]
call fcn.00418140
push str.HotSpotX
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd8], 3
call fcn.00418140
lea eax, [esp + 0xa8]
mov byte [esp + 0xd4], 4
push eax
mov ecx, edi
call fcn.004be860
cdq
lea ecx, [esp + 0x14]
idiv dword [esp + 0x54]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.004c51e0
lea ecx, [esp + 0x88]
call fcn.00418210
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd4], 1
call fcn.00418210
push str.HotSpotY
lea ecx, [esp + 0xac]
call fcn.00418140
lea eax, [esp + 0xa8]
mov byte [esp + 0xd4], 5
push eax
mov ecx, edi
call fcn.004bf1b0
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd4], 1
mov bl, al
call fcn.00418210
test bl, bl
je 0x4c5bcd
push str.HotSpotY
lea ecx, [esp + 0x8c]
call fcn.00418140
push str.HotSpotY
lea ecx, [esp + 0xac]
mov byte [esp + 0xd8], 6
call fcn.00418140
lea eax, [esp + 0x88]
mov byte [esp + 0xd4], 7
push eax
mov ecx, edi
call fcn.004be860
cdq
lea ecx, [esp + 0x14]
idiv dword [esp + 0xe4]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.004c51e0
lea ecx, [esp + 0xa8]
call fcn.00418210
lea ecx, [esp + 0x88]
call fcn.00418210
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov dword [esi], vtable.wxObject.0
mov dword [esi + 4], eax
test eax, eax
je 0x4c5d14
inc dword [eax + 4]
jmp 0x4c5d14
cmp dword [0x82e960], 0
je 0x4c5c29
push str.unable_to_create_image
push str.data
push str.wxImage::ShrinkBy
push 0x149
push str....._srccommonimage.cpp
call fcn.005c7220
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x4c5c29
mov byte [0x87c8e0], 0
int3
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x14]
push eax
call fcn.00485070
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 1
mov byte [esp + 0xd4], 0
mov dword [esp + 0x14], vtable.wxObject.0
call fcn.005bde00
mov eax, dword [esp + 0x44]
jmp 0x4c5d3d
cmp dword [0x82e960], 0
je 0x4c5ca0
push str.invalid_old_image_size
push str._old_height___0____old_width___0_
push str.wxImage::ShrinkBy
push 0x140
push str....._srccommonimage.cpp
call fcn.005c7220
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x4c5c9c
mov byte [0x87c8e0], 0
int3
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x44]
jmp 0x4c5d04
cmp dword [0x82e960], 0
je 0x4c5d04
push str.invalid_new_image_size
push str._xFactor___0____yFactor___0_
push str.wxImage::ShrinkBy
push 0x13a
jmp 0x4c5ce2
cmp dword [0x82e960], 0
je 0x4c5d04
push 0x7231f4
push str.IsOk__
push str.wxImage::ShrinkBy
push 0x136
push str....._srccommonimage.cpp
call fcn.005c7220
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x4c5d00
mov byte [0x87c8e0], 0
int3
mov ecx, dword [esp + 0x18]
mov dword [esi], vtable.wxObject.0
mov dword [esi + 4], ecx
test ecx, ecx
je 0x4c5d14
inc dword [ecx + 4]
lea ecx, [esp + 0x14]
mov dword [esi], vtable.wxImage.0
mov dword [esp + 0x28], 1
mov byte [esp + 0xd4], 0
mov dword [esp + 0x14], vtable.wxObject.0
call fcn.005bde00
mov eax, esi
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.006d1ba7
add esp, 0xc4
ret 0xc