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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x70e8ee
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x3c], esi
mov ebx, dword [ebp + 8]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.005a19f0
cmp eax, 0x7f
jle 0x5d8da6
cmp byte [ebp + 0x10], 0
je 0x5d8d8c
call fcn.00600a10
cmp eax, edi
je 0x5d8d7e
mov edx, dword [eax]
push edi
mov ecx, eax
mov eax, dword [edx + 8]
push str.ICO:_Image_too_tall_for_an_icon.
call eax
push eax
call fcn.0060b580
add esp, 4
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, str.ICO:_Image_too_tall_for_an_icon.
push eax
call fcn.0060b580
add esp, 4
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, ebx
call fcn.005a19d0
cmp eax, 0xff
jle 0x5d8e1d
cmp byte [ebp + 0x10], 0
je 0x5d8d8c
call fcn.00600a10
cmp eax, edi
je 0x5d8df5
mov edx, dword [eax]
push edi
mov ecx, eax
mov eax, dword [edx + 8]
push str.ICO:_Image_too_wide_for_an_icon.
call eax
push eax
call fcn.0060b580
add esp, 4
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, str.ICO:_Image_too_wide_for_an_icon.
push eax
call fcn.0060b580
add esp, 4
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x14]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
xor ecx, ecx
cmp eax, 5
sete cl
push 2
mov dword [esp + 0x20], 6
mov word [esp + 0x50], di
mov word [esp + 0x54], 1
add ecx, 1
mov eax, ecx
mov dword [esp + 0x48], eax
mov word [esp + 0x52], ax
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push 2
lea ecx, [esp + 0x52]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push 2
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
test al, al
jne 0x5d8ef6
cmp byte [ebp + 0x10], al
je 0x5d8d8c
call fcn.00600a10
cmp eax, edi
je 0x5d8ece
mov edx, dword [eax]
push edi
mov ecx, eax
mov eax, dword [edx + 8]
push str.ICO:_Error_writing_the_image_file_
call eax
push eax
call fcn.0060b580
add esp, 4
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, str.ICO:_Error_writing_the_image_file_
push eax
call fcn.0060b580
add esp, 4
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [esp + 0x40], edi
lea ebx, [ebx]
xor edi, edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], vtable.wxImage.0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [esp + 0x98], edi
call fcn.005a1e20
test al, al
mov ecx, esi
je 0x5d9048
call fcn.005a1de0
mov ecx, esi
push eax
call fcn.005a1dc0
mov ecx, esi
push eax
call fcn.005a1da0
lea ecx, [esp + 0x64]
push eax
push ecx
mov ecx, esi
call fcn.005a33c0
lea edx, [esp + 0x54]
cmp edx, eax
mov byte [esp + 0x98], 1
je 0x5d8f63
push eax
mov ecx, edx
call fcn.005fd950
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
mov dword [esp + 0x5c], vtable.wxObject.0
call fcn.005fd8d0
mov ecx, esi
call fcn.005a1da0
mov ecx, esi
mov byte [esp + 0x15], al
call fcn.005a1dc0
mov ecx, esi
mov byte [esp + 0x16], al
call fcn.005a1de0
cmp byte [esp + 0x15], 0
mov byte [esp + 0x17], al
jne 0x5d8fb3
cmp byte [esp + 0x16], 0
jne 0x5d8fb3
test al, al
je 0x5d90d1
lea ecx, [esp + 0x54]
xor edi, edi
call fcn.005a19d0
test eax, eax
jle 0x5d90d1
jmp 0x5d8fd0
lea ecx, [esp + 0x54]
xor esi, esi
call fcn.005a19f0
test eax, eax
jle 0x5d9033
nop
push esi
push edi
lea ecx, [esp + 0x5c]
call fcn.005a1c30
cmp byte [esp + 0x15], al
jne 0x5d9023
push esi
push edi
lea ecx, [esp + 0x5c]
call fcn.005a1c60
cmp byte [esp + 0x16], al
jne 0x5d9023
push esi
push edi
lea ecx, [esp + 0x5c]
call fcn.005a1c90
cmp byte [esp + 0x17], al
jne 0x5d9023
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
push esi
push edi
call fcn.005a1a50
lea ecx, [esp + 0x54]
add esi, 1
call fcn.005a19f0
cmp esi, eax
jl 0x5d8fe0
lea ecx, [esp + 0x54]
add edi, 1
call fcn.005a19d0
cmp edi, eax
jl 0x5d8fd0
jmp 0x5d90d1
lea eax, [esp + 0x64]
push eax
call fcn.005a2930
lea ecx, [esp + 0x54]
cmp ecx, eax
mov byte [esp + 0x98], 2
je 0x5d9068
push eax
call fcn.005fd950
lea ecx, [esp + 0x64]
mov byte [esp + 0x98], 0
mov dword [esp + 0x64], vtable.wxObject.0
call fcn.005fd8d0
lea ecx, [esp + 0x54]
call fcn.005a19d0
test eax, eax
jle 0x5d90d1
mov edi, edi
lea ecx, [esp + 0x54]
xor esi, esi
call fcn.005a19f0
test eax, eax
jle 0x5d90c1
nop
push 0
push 0
push 0
push esi
push edi
lea ecx, [esp + 0x68]
call fcn.005a1a50
lea ecx, [esp + 0x54]
add esi, 1
call fcn.005a19f0
cmp esi, eax
jl 0x5d90a0
lea ecx, [esp + 0x54]
add edi, 1
call fcn.005a19d0
cmp edi, eax
jl 0x5d9090
mov edx, dword [0x77132c]
push edx
push 0
push str.wxBMP_FORMAT
lea ecx, [esp + 0x2c]
call fcn.005fc220
mov esi, dword [ebp + 8]
push 8
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov byte [esp + 0xa0], 3
call fcn.005a1f70
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x98], 0
je 0x5d9124
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5d9124
call fcn.005fb120
mov ecx, dword [0x77132c]
push ecx
push 0
push str.wxBMP_FORMAT
lea ecx, [esp + 0x30]
call fcn.005fc220
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 4
call fcn.005a1f70
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x98], 0
je 0x5d9176
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5d9176
call fcn.005fb120
lea ecx, [esp + 0x7c]
call fcn.0060e270
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x3c]
push 0
push 0
push eax
lea ecx, [esp + 0x88]
push ecx
push esi
mov ecx, edi
mov byte [esp + 0xac], 5
call fcn.005d7d20
test al, al
je 0x5d94f0
mov edx, dword [ebp + 0x10]
push 1
push 0
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call fcn.005d7d20
test al, al
je 0x5d94f0
lea ecx, [esp + 0x7c]
call fcn.0060eb70
add dword [esp + 0x1c], 0x10
mov edi, eax
mov ecx, esi
mov dword [esp + 0x48], edi
call fcn.005a19d0
mov ecx, esi
mov byte [esp + 0x6c], al
call fcn.005a19f0
add al, al
cmp dword [esp + 0x44], 2
mov byte [esp + 0x6d], al
mov byte [esp + 0x6e], 0
mov byte [esp + 0x6f], 0
mov word [esp + 0x70], 1
mov word [esp + 0x72], 8
jne 0x5d93bc
mov edx, dword [0x77132c]
push edx
push 0
push str.HotSpotX
lea ecx, [esp + 0x38]
call fcn.005fc220
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x9c], 6
call fcn.005a2010
test al, al
je 0x5d927f
mov ecx, dword [0x77132c]
push ecx
push 0
push str.HotSpotX
lea ecx, [esp + 0x34]
call fcn.005fc220
or dword [esp + 0x18], 1
lea edx, [esp + 0x28]
push edx
mov ecx, esi
mov byte [esp + 0x9c], 7
call fcn.005a36a0
jmp 0x5d928b
mov ecx, esi
call fcn.005a19d0
cdq
sub eax, edx
sar eax, 1
test byte [esp + 0x18], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x98], 6
je 0x5d92c1
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
and dword [esp + 0x18], 0xfffffffe
add ecx, 0xfffffff4
cmp eax, 0xffffffff
je 0x5d92c1
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5d92c1
call fcn.005fb120
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x98], 5
je 0x5d92e4
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5d92e4
call fcn.005fb120
mov eax, dword [0x77132c]
push eax
push 0
push str.HotSpotY
lea ecx, [esp + 0x40]
call fcn.005fc220
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov byte [esp + 0x9c], 8
call fcn.005a2010
test al, al
je 0x5d9346
mov edx, dword [0x77132c]
push edx
push 0
push str.HotSpotY
lea ecx, [esp + 0x3c]
call fcn.005fc220
or dword [esp + 0x18], 2
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov byte [esp + 0x9c], 9
call fcn.005a36a0
mov edi, eax
jmp 0x5d9354
mov ecx, esi
call fcn.005a19f0
cdq
sub eax, edx
mov edi, eax
sar edi, 1
test byte [esp + 0x18], 2
mov dword [esp + 0x98], 8
je 0x5d9386
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
and dword [esp + 0x18], 0xfffffffd
add ecx, 0xfffffff4
cmp eax, 0xffffffff
je 0x5d9386
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5d9386
call fcn.005fb120
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x98], 5
je 0x5d93a9
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5d93a9
call fcn.005fb120
mov cx, word [esp + 0x38]
mov word [esp + 0x72], di
mov edi, dword [esp + 0x48]
mov word [esp + 0x70], cx
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x78], eax
add eax, edi
mov dword [esp + 0x1c], eax
push 1
lea eax, [esp + 0x70]
push eax
mov ecx, ebx
mov dword [esp + 0x7c], edi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push 1
lea ecx, [esp + 0x71]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push 1
lea ecx, [esp + 0x72]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push 1
lea ecx, [esp + 0x73]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push 2
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push 2
lea ecx, [esp + 0x76]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0x7c]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
test al, al
je 0x5d94f0
mov eax, dword [ebp + 0x10]
push 0
push 0
push eax
push ebx
push esi
mov esi, dword [esp + 0x50]
mov ecx, esi
call fcn.005d7d20
test al, al
je 0x5d94f0
mov ecx, dword [ebp + 0x10]
push 1
push 0
push ecx
push ebx
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.005d7d20
test al, al
je 0x5d9566
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 0
call fcn.0060e1f0
lea ecx, [esp + 0x54]
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x54], vtable.wxObject.0
call fcn.005fd8d0
mov eax, dword [esp + 0x40]
add eax, 1
cmp eax, 1
mov dword [esp + 0x40], eax
jl 0x5d8f00
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0x10], 0
je 0x5d951f
call fcn.00600a10
test eax, eax
je 0x5d9511
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.ICO:_Error_writing_the_image_file_
call eax
jmp 0x5d9516
mov eax, str.ICO:_Error_writing_the_image_file_
push eax
call fcn.0060b580
add esp, 4
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 0
call fcn.0060e1f0
lea ecx, [esp + 0x54]
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x54], vtable.wxObject.0
call fcn.005fd8d0
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0x10], 0
je 0x5d951f
push 0
push str.ICO:_Error_writing_the_image_file_
call fcn.0040fbb8
push eax
call fcn.0060b580
add esp, 0xc
jmp 0x5d951f