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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
mov dword [esp + 0x4c], eax
mov eax, esp
mov dword [eax + 4], ebx
mov dword [eax], edi
mov dword [eax + 8], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
call fcn.00482900
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
xor edx, edx
neg ecx
sbb edx, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
jl 0x477982
jmp 0x47795e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x10]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
mov dword [edx + 8], 0
call fcn.00482900
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x7c]
test eax, eax
jns 0x47799c
jmp 0x47798c
mov dword [esp + 0x88], 0
jmp 0x477ef3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
movzx eax, word [eax + 0x18]
cmp eax, 0x20b
jne 0x477c47
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 0x74], eax
xor eax, eax
mov cl, al
mov eax, 8
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 4]
mov byte [esp + 0x37], cl
ja 0x477a31
xor eax, eax
mov cl, al
mov eax, dword [esp + 0x74]
mov edx, dword [ebp + 8]
cmp eax, dword [edx]
mov byte [esp + 0x37], cl
jb 0x477a31
xor eax, eax
mov cl, al
mov eax, dword [esp + 0x74]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov esi, dword [ebp + 8]
add edx, dword [esi + 4]
add edx, 0xfffffff8
cmp eax, edx
mov byte [esp + 0x37], cl
ja 0x477a31
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
xor edx, edx
mov bl, dl
or ecx, eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x37], bl
je 0x477a31
jmp 0x477a21
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0x4000
setl cl
mov byte [esp + 0x37], cl
mov al, byte [esp + 0x37]
test al, 1
jne 0x477a3e
jmp 0x477c42
mov dword [esp + 0x70], 0
mov word [esp + 0x6e], 0
mov byte [esp + 0x6d], 0
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 7]
test cl, 0x80
jne 0x477b41
jmp 0x477a64
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov esi, esp
mov dword [esi + 8], ecx
mov dword [esi + 4], edx
mov dword [esi], eax
call fcn.00482900
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x7c]
test eax, eax
js 0x477b3f
jmp 0x477a95
mov eax, 4
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x78]
add ecx, edx
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 4]
ja 0x477b3d
mov eax, dword [esp + 0x68]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx]
jb 0x477b3d
mov eax, dword [esp + 0x68]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
add ecx, 0xfffffffc
cmp eax, ecx
ja 0x477b3d
mov eax, dword [esp + 0x68]
add eax, 2
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x68]
add edx, 2
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 0x2c], eax
call fcn.00477780
cmp eax, 0x200
jae 0x477b1a
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x68]
add ecx, 2
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00477780
mov dword [esp + 0x28], eax
jmp 0x477b25
mov eax, pe_nt_image_headers32
mov dword [esp + 0x28], eax
jmp 0x477b25
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00466b70
mov dword [esp + 0x70], eax
jmp 0x477b3f
jmp 0x477b6c
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x74]
movzx ecx, word [ecx]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call fcn.00482c20
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x74]
mov si, word [eax]
mov word [esp + 0x6e], si
mov byte [esp + 0x6d], 1
cmp dword [esp + 0x70], 0
jne 0x477b81
movzx eax, byte [esp + 0x6d]
cmp eax, 1
jne 0x477c28
mov eax, 1
mov ecx, 0xc
mov dword [esp], 1
mov dword [esp + 4], 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call fcn.004669b0
mov dword [esp + 0x64], eax
cmp dword [esp + 0x64], 0
jne 0x477bc3
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00466ac4
jmp 0x4779c0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
mov dword [ecx], eax
mov dx, word [esp + 0x6e]
mov eax, dword [esp + 0x64]
mov word [eax + 6], dx
mov bl, byte [esp + 0x6d]
mov eax, dword [esp + 0x64]
mov byte [eax + 4], bl
mov eax, dword [esp + 0x64]
mov dword [eax + 8], 0
cmp dword [esp + 0x84], 0
jne 0x477c05
mov eax, dword [esp + 0x64]
mov dword [esp + 0x84], eax
cmp dword [esp + 0x80], 0
je 0x477c1d
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x80]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
add ecx, 1
mov dword [eax], ecx
mov eax, dword [esp + 0x74]
add eax, 8
mov dword [esp + 0x74], eax
jmp 0x4779c0
jmp 0x477ee5
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 0x60], eax
xor eax, eax
mov cl, al
mov eax, 4
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 4]
mov byte [esp + 0x1f], cl
ja 0x477cbd
xor eax, eax
mov cl, al
mov eax, dword [esp + 0x60]
mov edx, dword [ebp + 8]
cmp eax, dword [edx]
mov byte [esp + 0x1f], cl
jb 0x477cbd
xor eax, eax
mov cl, al
mov eax, dword [esp + 0x60]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov esi, dword [ebp + 8]
add edx, dword [esi + 4]
add edx, 0xfffffffc
cmp eax, edx
mov byte [esp + 0x1f], cl
ja 0x477cbd
xor eax, eax
mov cl, al
mov eax, dword [esp + 0x60]
cmp dword [eax], 0
mov byte [esp + 0x1f], cl
je 0x477cbd
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0x4000
setl cl
mov byte [esp + 0x1f], cl
mov al, byte [esp + 0x1f]
test al, 1
jne 0x477cca
jmp 0x477ee3
mov dword [esp + 0x5c], 0
mov word [esp + 0x5a], 0
mov byte [esp + 0x59], 0
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
and eax, 0x80000000
cmp eax, 0
jne 0x477dd0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
mov dword [edx + 8], 0
call fcn.00482900
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x7c]
test eax, eax
js 0x477dce
jmp 0x477d24
mov eax, 4
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x78]
add ecx, edx
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 4]
ja 0x477dcc
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx]
jb 0x477dcc
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
add ecx, 0xfffffffc
cmp eax, ecx
ja 0x477dcc
mov eax, dword [esp + 0x54]
add eax, 2
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x54]
add edx, 2
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 0x18], eax
call fcn.00477780
cmp eax, 0x200
jae 0x477da9
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x54]
add ecx, 2
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00477780
mov dword [esp + 0x14], eax
jmp 0x477db4
mov eax, pe_nt_image_headers32
mov dword [esp + 0x14], eax
jmp 0x477db4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00466b70
mov dword [esp + 0x5c], eax
jmp 0x477dce
jmp 0x477e0d
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx]
and ecx, 0xffff
mov dx, cx
mov dword [esp], eax
movzx eax, dx
mov dword [esp + 4], eax
call fcn.00482c20
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
and eax, 0xffff
mov dx, ax
mov word [esp + 0x5a], dx
mov byte [esp + 0x59], 1
cmp dword [esp + 0x5c], 0
jne 0x477e22
movzx eax, byte [esp + 0x59]
cmp eax, 1
jne 0x477ec9
mov eax, 1
mov ecx, 0xc
mov dword [esp], 1
mov dword [esp + 4], 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
call fcn.004669b0
mov dword [esp + 0x50], eax
cmp dword [esp + 0x50], 0
jne 0x477e64
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.00466ac4
jmp 0x477c56
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov dx, word [esp + 0x5a]
mov eax, dword [esp + 0x50]
mov word [eax + 6], dx
mov bl, byte [esp + 0x59]
mov eax, dword [esp + 0x50]
mov byte [eax + 4], bl
mov eax, dword [esp + 0x50]
mov dword [eax + 8], 0
cmp dword [esp + 0x84], 0
jne 0x477ea6
mov eax, dword [esp + 0x50]
mov dword [esp + 0x84], eax
cmp dword [esp + 0x80], 0
je 0x477ebe
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x80]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
add ecx, 1
mov dword [eax], ecx
mov eax, dword [esp + 0x60]
add eax, 4
mov dword [esp + 0x60], eax
jmp 0x477c56
jmp 0x477ee5
mov eax, dword [esp + 0x84]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x88]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret