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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [0x49f37c]
add eax, 0xfffffff4
push edi
cmp eax, 8
ja case.0x477836.13
movzx eax, byte [eax + 0x477f42]
jmp dword [eax*4 + 0x477f3a]
mov ebx, dword [esp + 0x34]
cmp ebx, 0xffffffff
je 0x477869
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0x49f310
call fcn.00443675
test al, al
je 0x477869
mov esi, dword [esp + 0x1c]
jmp 0x477869
mov ebx, dword [esp + 0x34]
cmp esi, 0xffffffff
jne 0x477883
lea esi, [esp + 0x50]
call fcn.0040bfb0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x34
mov eax, dword [0x49f370]
mov ecx, dword [eax + esi*4]
mov esi, dword [ecx]
push esi
call fcn.0045919f
mov ebp, eax
cmp ebp, 0xffffffff
je 0x47786e
mov edx, dword [0x49f384]
mov eax, dword [edx + ebp*4]
mov edi, dword [eax]
mov eax, dword [esp + 0x2c]
cmp eax, 0xe
je 0x4778c9
cmp eax, 0xf
je 0x4778c9
cmp eax, 0xc
je 0x4778c9
mov byte [edi + 0x7a], 0x50
mov cx, word [0x49f318]
mov word [edi + 0x6e], cx
jmp 0x4778cd
mov byte [edi + 0x7a], 0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x4c]
mov eax, ebx
mov ebx, dword [esp + 0x3c]
and edx, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
jne 0x477928
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
push esi
push eax
mov eax, dword [esp + 0x3c]
push ebx
push edx
push eax
call fcn.004355f6
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov eax, ecx
mov dword [esp + 0x18], edx
mov ecx, edx
jmp 0x47792e
xor edx, edx
mov word [edi + 0x6e], dx
cmp dword [esp + 0x2c], 0x1d
ja case.0x47793d.13
mov edx, dword [esp + 0x2c]
jmp dword [edx*4 + 0x477f4e]
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f55b
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f480
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f89a
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f7ef
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f74b
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f3a2
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f2a2
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f16c
jmp 0x477ce7
sub esp, 0x10
lea eax, [esp + 0x60]
mov ebx, esp
call fcn.00408420
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
push ebp
push edi
push esi
call fcn.0046c9cb
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
push ebp
push edi
push esi
call fcn.0044f0a3
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
push ebp
push edi
push esi
call fcn.0044efef
jmp 0x477ce7
lea ecx, [esp + 0x50]
call fcn.0040cd60
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
push edx
push eax
push ecx
push ebp
push edi
push esi
call fcn.00442808
jmp 0x477ce7
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
push ebp
push edi
push esi
call fcn.0044eefb
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
push ebp
push edi
push esi
call fcn.0044edf7
jmp 0x477ce7
mov eax, dword [esp + 0x30]
push eax
push ebp
push edi
push esi
call fcn.0044273f
jmp 0x477ce7
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push ebp
push edi
push esi
call fcn.004494cb
jmp 0x477ce7
mov ecx, dword [esp + 0x34]
push ecx
push edi
push esi
call fcn.00448f02
jmp 0x477ce7
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebp
push edi
push esi
call fcn.0044936b
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
push ebp
push edi
push esi
call fcn.0044ecb1
jmp 0x477ce7
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebp
push edi
call fcn.0044922d
jmp 0x477ce7
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
push ebp
push edi
push esi
call fcn.00442469
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f95f
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f9e8
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f6b8
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044f61f
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
push edi
push esi
call fcn.0044eacd
jmp 0x477ce7
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push ebp
push edi
call fcn.00448fda
jmp 0x477ce7
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push edi
push esi
call fcn.00477713
test al, al
jne case.0x47793d.21
push ebp
push 0x49f310
call fcn.004568fe
cmp dword [esp + 0x2c], 0xb
lea esi, [esp + 0x50]
jne 0x477872
mov ecx, dword [esp + 0x30]
cmp word [ecx], 0
jne 0x477872
call fcn.0040bfb0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x34
mov al, byte [esp + 0x4c]
mov dl, byte [esp + 0x2c]
mov byte [edi + 0x78], dl
mov byte [edi + 0x79], al
mov ecx, dword [0x49f37c]
mov dword [0x49f3a8], ecx
mov dword [0x49f3a4], ebp
test al, 1
jne 0x477d89
lea ecx, [esi + 0x68]
push ecx
call fcn.00437397
test al, al
je 0x477d70
cmp dword [esi + 0x78], 0x55
jne 0x477d70
cmp dword [esi + 0x7c], 0x190
jne 0x477d70
cmp dword [esi + 0x80], 0
je 0x477d89
mov edx, dword [esi + 0x80]
mov eax, dword [esi + 0x7c]
push 0
push edx
mov edx, dword [esi + 0x78]
push eax
push edx
push ecx
push edi
push esi
call fcn.00442b2d
test byte [esp + 0x4c], 4
jne 0x477eae
or eax, 0xffffffff
cmp dword [esp + 0x3c], eax
je 0x477da7
cmp dword [esp + 0x40], eax
jne 0x477eae
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [edi]
mov ebx, eax
xor eax, eax
push eax
push eax
push 0x31
push ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
push edx
push eax
push ebx
call fcn.00437a37
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x2c]
add eax, 0xffffffe9
cmp eax, 3
ja case.default.0x477e0a
jmp dword [eax*4 + 0x477fc6]
mov ecx, dword [esp + 0x1c]
jmp 0x477e48
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add edx, 4
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
jmp case.default.0x477e0a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add edx, 0xc
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
jmp case.default.0x477e0a
mov ecx, dword [esp + 0x1c]
add ecx, 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
or eax, 0xffffffff
cmp dword [esp + 0x40], eax
jne 0x477e75
cmp dword [esi + 0x60], eax
je 0x477e6b
cmp dword [0x49f314], 2
je 0x477e75
mov edx, dword [esp + 0x44]
add edx, 8
mov dword [esi + 0x60], edx
cmp dword [esp + 0x3c], eax
jne 0x477e93
cmp dword [esi + 0x5c], eax
je 0x477e89
cmp dword [0x49f314], 2
je 0x477e93
mov eax, dword [esp + 0x48]
add eax, 8
mov dword [esi + 0x5c], eax
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
push 1
push ecx
mov ecx, dword [esi + 0x54]
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [esp + 0x24], 0
jne 0x477ebe
push 0
push edi
push esi
call fcn.004352f8
cmp byte [esi + 0x184], 0
je 0x477ee4
cmp dword [esi + 0x17c], 0xffffffff
je 0x477edb
mov al, byte [esi + 0x17c]
mov byte [edi + 0x7b], al
jmp 0x477ee4
mov cl, byte [esi + 0x178]
mov byte [edi + 0x7b], cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x477ef3
push eax
push ebp
call fcn.00449ea4
mov esi, dword [esi + 0x50]
cmp esi, 0xffffffff
je 0x477f02
push esi
push ebp
call fcn.00449c61
lea esi, [esp + 0x50]
call fcn.0040bfb0
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x34
push ebp
push 0x49f310
call fcn.004568fe
lea esi, [esp + 0x50]
call fcn.0040bfb0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x34