Function at 0x477eb0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x499338
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x1c]
sub esp, 0x60
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x477ed8
mov dword [eax], edi
mov eax, dword [esp + 0x90]
cmp eax, edi
je 0x477ee5
mov dword [eax], edi
lea ecx, [esp + 0x60]
call fcn.004787e0
mov eax, dword [esp + 0x80]
mov dword [esp + 0x78], edi
mov dword [esp + 0x68], edi
mov ecx, dword [eax + 8]
cmp ecx, edi
jne 0x477f08
xor eax, eax
jmp 0x477f0a
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.00478c10
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
mov esi, eax
mov dword [esp + 0x3c], eax
neg esi
sbb esi, esi
xor eax, eax
and esi, ecx
xor ecx, ecx
mov dword [esp + 0x14], esi
mov ebx, dword [esi + 0x3c]
add ebx, esi
mov dword [esp + 0x1c], ebx
mov cx, word [ebx + 0x14]
mov ax, word [ebx + 6]
mov dword [esp + 0x38], eax
lea ebp, [ecx + ebx + 0x18]
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x50], ebp
jle 0x477f77
mov edx, dword [ebp + 0x24]
and edx, 0x20000020
cmp edx, 0x20000020
je 0x477f6f
inc ecx
add ebp, 0x28
cmp ecx, eax
jl 0x477f54
jmp 0x477f77
cmp ebp, edi
mov dword [esp + 0x54], ebp
jne 0x477f9e
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.004789e0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x10]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx]
cmp eax, ecx
jb 0x477fb0
mov eax, ecx
push 4
push eax
call fcn.00477e80
mov edi, dword [ebp + 0x14]
mov ecx, dword [esp + 0x8c]
mov edx, dword [ebp + 8]
mov dword [esp + 0x54], eax
add edi, eax
mov eax, dword [esp + 0x2c]
add edx, ecx
add esp, 8
mov dword [ebp + 8], edx
mov edx, dword [eax]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], edi
sub edx, eax
cmp edx, ecx
jl 0x478032
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x47800c
mov eax, dword [esp + 0x80]
mov edx, dword [eax + 8]
test edx, edx
jne 0x478004
xor eax, eax
jmp 0x478006
mov eax, dword [eax]
sub eax, esi
add eax, ebp
mov dword [ecx], eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.004789e0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
test byte [ebx + 0x17], 0x20
jne 0x47805f
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.004789e0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
lea eax, [edx + edi]
sub ecx, edx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x3c]
push eax
push ecx
call fcn.00477e80
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x38]
mov esi, eax
push ecx
mov eax, dword [edx]
mov dword [esp + 0x90], esi
push eax
call fcn.00477e80
mov edx, dword [esp + 0x34]
mov ecx, dword [ebx + 0x38]
mov edi, eax
push ecx
mov eax, dword [edx]
add eax, esi
push eax
call fcn.00477e80
mov ebp, dword [ebp + 0xc]
sub eax, edi
mov esi, eax
mov eax, dword [ebx + 0x74]
add esp, 0x18
add ebp, edi
lea ecx, [ebx + 0x78]
mov dword [esp + 0x18], esi
test eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 0
jle 0x478384
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x58], eax
je 0x478365
mov eax, dword [esp + 0x50]
mov edx, dword [ecx]
mov dword [esp + 0x2c], 0
mov ecx, dword [eax + 0xc]
cmp edx, ecx
jb 0x4780f6
mov edi, dword [eax + 0x10]
add edi, ecx
cmp edx, edi
jb 0x47810f
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
inc ecx
add eax, 0x28
cmp ecx, edi
mov dword [esp + 0x2c], ecx
jl 0x4780e6
jmp 0x478365
mov edi, dword [eax + 0x14]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x14]
sub edi, ecx
add edi, edx
add edi, eax
je 0x478365
mov eax, dword [esp + 0x30]
cmp eax, 0xc
ja case.0x47813a.5
xor ecx, ecx
mov cl, byte [eax + 0x478718]
jmp dword [ecx*4 + 0x478700]
mov eax, dword [edi + 0x14]
test eax, eax
jbe 0x4782cc
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x1c]
push 0
push edx
push eax
call fcn.00477bd0
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4782cc
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x4782cc
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push 0
push edx
mov eax, dword [ecx]
push eax
mov dword [esp + 0x54], eax
call fcn.00477bd0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x47829e
cmp byte [ebx], 0xb8
jne 0x47829e
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
add eax, ecx
lea edx, [ebx + 0xa]
cmp edx, eax
mov dword [esp + 0x58], eax
ja 0x47829e
cmp byte [ebx + 5], 0xe9
jne 0x47829e
mov eax, dword [ebx + 6]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
push 0
lea eax, [eax + ecx + 0xa]
push edx
push eax
mov dword [esp + 0x34], eax
call fcn.00477bd0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x478264
mov ecx, dword [esp + 0x58]
lea eax, [esi + 0x1f9]
cmp eax, ecx
ja 0x478264
mov eax, dword [esi + 0x1ed]
add esi, 0x1ed
cmp eax, 0xe8
jne 0x478264
cmp dword [esi + 4], 0x24048100
jne 0x478264
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 8]
lea eax, [ecx + 0x1f2]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], edx
push eax
push ebp
push ecx
call fcn.00478730
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x4c]
push edx
push ebp
push eax
call fcn.00478730
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
add esp, 0x18
sub ecx, eax
mov dword [esi + 8], ecx
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x28]
push esi
push ebp
push edx
call fcn.00478730
mov eax, dword [esp + 0x54]
push esi
lea ecx, [esp + 0x5c]
add eax, 5
push ebp
push ecx
mov dword [esp + 0x64], eax
call fcn.00478730
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x64]
sub edx, ecx
add esp, 0x18
sub edx, 5
mov dword [ebx + 6], edx
mov ebx, dword [esp + 0x2c]
push esi
push ebp
push ebx
call fcn.00478730
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x14]
add esp, 0xc
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], ebx
jl 0x47817e
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x18]
test eax, eax
jbe 0x478327
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x20]
push 0
push eax
push ecx
call fcn.00477bd0
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x478327
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x478327
mov edx, dword [esp + 0x2c]
push esi
push ebp
push edx
call fcn.00478730
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov ecx, dword [edi + 0x18]
add esp, 0xc
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
jl 0x4782fd
push esi
lea eax, [edi + 0xc]
push ebp
push eax
call fcn.00478730
push esi
lea ecx, [edi + 0x1c]
push ebp
push ecx
call fcn.00478730
push esi
lea edx, [edi + 0x20]
push ebp
push edx
call fcn.00478730
push esi
add edi, 0x24
push ebp
push edi
call fcn.00478730
add esp, 0x30
mov ecx, dword [esp + 0x34]
push esi
push ebp
push ecx
call fcn.00478730
add esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx + 0x74]
inc eax
add ecx, 8
cmp eax, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jl 0x4780c9
mov edx, dword [esp + 0x54]
mov eax, 0x66666667
lea edi, [edx + 0x28]
mov edx, dword [esp + 0x50]
mov ecx, edi
sub ecx, edx
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x38]
cmp edx, eax
jge 0x478413
add edi, 0x14
sub eax, edx
mov dword [esp + 0x50], eax
push esi
lea ecx, [edi - 8]
push ebp
push ecx
call fcn.00478730
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x2c]
push edx
push eax
push edi
call fcn.00478730
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x38]
push ecx
lea eax, [edi + 4]
push edx
push eax
call fcn.00478730
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x44]
push ecx
lea eax, [edi + 8]
push edx
push eax
call fcn.00478730
mov eax, dword [esp + 0x80]
add esp, 0x30
add edi, 0x28
dec eax
mov dword [esp + 0x50], eax
jne 0x4783b5
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x20]
push edi
lea edx, [ebx + 0xc]
push ecx
push edx
call fcn.00478730
push esi
lea eax, [ebx + 0x28]
push ebp
push eax
call fcn.00478730
push esi
lea ecx, [ebx + 0x2c]
push ebp
push ecx
call fcn.00478730
push esi
lea edx, [ebx + 0x30]
push ebp
push edx
call fcn.00478730
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x1c]
add eax, esi
add ecx, edi
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [eax]
add esp, 0x30
add edx, edi
mov dword [eax], edx
mov eax, dword [esp + 0x54]
sub eax, ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x3c]
add eax, edi
push eax
call fcn.004788d0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
lea ebx, [ecx + eax]
mov eax, dword [esp + 0x3c]
sub eax, ecx
push eax
lea ecx, [ebx + edi]
push ebx
push ecx
call fcn.0047ac70
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 0xc
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x60]
push eax
call fcn.00478b20
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4784db
mov ecx, eax
mov dword [ecx], ebp
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4784e8
mov dword [eax], esi
mov eax, dword [esp + 0x88]
test eax, eax
je 0x478502
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x14]
add edx, ecx
mov dword [eax], edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.004789e0
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret
push esi
push ebp
push edi
push edi
call fcn.00478750
add esp, 0x10
jmp case.0x47813a.4
mov eax, dword [esp + 0x58]
test eax, eax
mov dword [esp + 0x48], eax
jle case.0x47813a.4
mov eax, dword [esp + 0x14]
mov ecx, dword [edi]
push 0
push eax
push ecx
call fcn.00477bd0
add esp, 0xc
mov dword [esp + 0x58], eax
test eax, eax
je 0x4785ea
mov ebx, dword [edi + 4]
lea edx, [edi + 8]
sub ebx, 8
mov dword [esp + 0x2c], edx
shr ebx, 1
test ebx, ebx
mov dword [esp + 0x10], 0
jle 0x4785ea
mov eax, dword [esp + 0x2c]
xor esi, esi
mov si, word [eax]
mov eax, esi
shr eax, 0xc
je 0x4785d2
cmp eax, 3
jne case.0x47813a.5
mov ecx, dword [esp + 0x58]
and esi, 0xfff
add esi, ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x34]
mov eax, dword [esi]
sub eax, edx
mov dword [esi], eax
mov eax, dword [esp + 0x18]
push eax
push ebp
push esi
call fcn.00478730
mov ecx, dword [esp + 0x28]
mov eax, dword [esi]
add esp, 0xc
mov edx, dword [ecx + 0x34]
add eax, edx
mov dword [esi], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
inc eax
add edx, 2
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
jl 0x478584
mov eax, dword [esp + 0x18]
push eax
push ebp
push edi
call fcn.00478730
mov esi, dword [edi + 4]
mov ecx, dword [esp + 0x54]
lea eax, [edi + 4]
mov edx, esi
sub ecx, edx
add esp, 0xc
add edi, esi
mov dword [esp + 0x48], ecx
test ecx, ecx
jg 0x47854b
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
jmp case.0x47813a.4
add edi, 0x10
mov eax, dword [edi - 0xc]
test eax, eax
jne 0x478637
mov eax, dword [edi - 4]
test eax, eax
je case.0x47813a.4
mov eax, dword [edi - 0x10]
lea ecx, [edi - 0x10]
test eax, eax
jne 0x47864a
cmp dword [edi], 0
je case.0x47813a.4
mov edx, dword [edi - 8]
test edx, edx
je 0x47865a
cmp edx, 0xffffffff
jne case.0x47813a.5
xor ebx, ebx
xor edx, edx
cmp eax, dword [edi]
mov dword [esp + 0x10], ebx
setne dl
inc edx
test edx, edx
jle 0x4786d3
test ebx, ebx
je 0x478672
mov eax, dword [edi]
test eax, eax
je 0x4786b6
mov ecx, dword [esp + 0x14]
push 0
push ecx
push eax
call fcn.00477bd0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4786b6
mov eax, dword [esi]
test eax, eax
je 0x4786b6
mov ebx, dword [esp + 0x18]
test eax, 0x80000000
jne 0x4786a8
push ebx
push ebp
push esi
call fcn.00478730
add esp, 0xc
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x478696
mov ebx, dword [esp + 0x10]
mov eax, dword [edi - 0x10]
mov esi, dword [edi]
lea ecx, [edi - 0x10]
inc ebx
xor edx, edx
cmp eax, esi
setne dl
inc edx
mov dword [esp + 0x10], ebx
cmp ebx, edx
jl 0x47866c
mov esi, dword [esp + 0x18]
push esi
push ebp
push ecx
call fcn.00478730
push esi
lea eax, [edi - 4]
push ebp
push eax
call fcn.00478730
push esi
push ebp
push edi
call fcn.00478730
mov ebx, dword [esp + 0x40]
add esp, 0x24
add edi, 0x14
jmp 0x478625