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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca7c0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [edi + 0x48], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
je 0x478622
mov eax, dword [edi + 0x48]
cmp eax, ebx
je 0x478622
push eax
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x58], ebx
mov dword [edi + 0x64], 0xffffffff
mov byte [edi + 0x61], bl
mov byte [edi + 0x60], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push 0x2000
push ebx
push ebx
push ebx
push edx
lea esi, [edi + 0x44]
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi + 4], eax
xor eax, eax
call fcn.00478180
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
test eax, eax
je 0x47865f
xor al, al
jmp 0x478843
mov esi, dword [esp + 0x10]
mov eax, esi
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x478680
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x6c]
call fcn.00406b80
mov dword [esp + 0x90], ebx
mov ecx, dword [esp + 0x78]
mov edx, esi
push 4
add ecx, 0xfffffffc
push edx
lea esi, [esp + 0x50]
call fcn.00408b70
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 1
call fcn.00406430
mov byte [esp + 0x90], bl
cmp dword [esp + 0x60], 8
jb 0x4786e5
mov eax, dword [esp + 0x4c]
push eax
call fcn.00488fd0
add esp, 4
lea ebx, [esp + 0x38]
lea edi, [esp + 0x64]
call fcn.00478e70
mov ecx, dword [eax + 4]
mov esi, dword [eax]
lea ebx, [esp + 0x40]
mov dword [esp + 0x2c], ecx
call fcn.00478ec0
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ebx, [esp + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call fcn.00478e70
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
push esi
mov byte [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x3c]
push edx
mov ebx, eax
call fcn.00478f40
mov eax, dword [esp + 0x90]
add esp, 0x18
push str..png
mov edi, 4
lea ecx, [esp + 0x68]
call fcn.004484f0
test eax, eax
jne 0x47882d
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x50], eax
mov dword [esp + 0x10], eax
jle 0x47882d
mov eax, dword [ecx + 0x54]
xor ebx, ebx
test eax, eax
jle 0x478819
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x18]
imul eax, dword [esp + 0x10]
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, dword [esi + 0x14]
imul eax, ebx
sar ecx, 3
add ecx, eax
add ecx, dword [esi + 8]
mov eax, 0x80808081
movzx esi, byte [ecx + 3]
movzx edi, byte [ecx]
imul edi, esi
imul edi
add edx, edi
movzx edi, byte [ecx + 1]
sar edx, 7
imul edi, esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
mov eax, 0x80808081
imul edi
add edx, edi
movzx edi, byte [ecx + 2]
sar edx, 7
imul edi, esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 2], al
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x54]
add ebx, 1
cmp ebx, eax
jl 0x47878c
mov edx, dword [esp + 0x10]
add edx, 1
cmp edx, dword [ecx + 0x50]
mov dword [esp + 0x10], edx
jl 0x478782
cmp dword [esp + 0x7c], 8
jb 0x478841
mov edx, dword [esp + 0x68]
push edx
call fcn.00488fd0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004a74b2
mov esp, ebp
pop ebp
ret 8