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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b3138
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 0x476d58
mov dword [eax], edi
mov eax, dword [esp + 0x90]
cmp eax, edi
je 0x476d65
mov dword [eax], edi
lea ecx, [esp + 0x60]
call fcn.00477660
mov eax, dword [esp + 0x80]
mov dword [esp + 0x78], edi
mov dword [esp + 0x68], edi
mov ecx, dword [eax + 8]
cmp ecx, edi
jne 0x476d88
xor eax, eax
jmp 0x476d8a
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.00477a90
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 0x476df7
mov edx, dword [ebp + 0x24]
and edx, 0x20000020
cmp edx, 0x20000020
je 0x476def
inc ecx
add ebp, 0x28
cmp ecx, eax
jl 0x476dd4
jmp 0x476df7
cmp ebp, edi
mov dword [esp + 0x54], ebp
jne 0x476e1e
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.00477860
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 0x476e30
mov eax, ecx
push 4
push eax
call fcn.00476d00
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 0x476eb2
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x476e8c
mov eax, dword [esp + 0x80]
mov edx, dword [eax + 8]
test edx, edx
jne 0x476e84
xor eax, eax
jmp 0x476e86
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.00477860
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 0x476edf
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.00477860
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.00476d00
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.00476d00
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.00476d00
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 0x477204
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x58], eax
je 0x4771e5
mov eax, dword [esp + 0x50]
mov edx, dword [ecx]
mov dword [esp + 0x2c], 0
mov ecx, dword [eax + 0xc]
cmp edx, ecx
jb 0x476f76
mov edi, dword [eax + 0x10]
add edi, ecx
cmp edx, edi
jb 0x476f8f
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
inc ecx
add eax, 0x28
cmp ecx, edi
mov dword [esp + 0x2c], ecx
jl 0x476f66
jmp 0x4771e5
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 0x4771e5
mov eax, dword [esp + 0x30]
cmp eax, 0xc
ja case.0x476fba.5
xor ecx, ecx
mov cl, byte [eax + 0x477598]
jmp dword [ecx*4 + 0x477580]
mov eax, dword [edi + 0x14]
test eax, eax
jbe 0x47714c
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x1c]
push 0
push edx
push eax
call fcn.00476a50
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x47714c
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x47714c
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.00476a50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x47711e
cmp byte [ebx], 0xb8
jne 0x47711e
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 0x47711e
cmp byte [ebx + 5], 0xe9
jne 0x47711e
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.00476a50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4770e4
mov ecx, dword [esp + 0x58]
lea eax, [esi + 0x1f9]
cmp eax, ecx
ja 0x4770e4
mov eax, dword [esi + 0x1ed]
add esi, 0x1ed
cmp eax, 0xe8
jne 0x4770e4
cmp dword [esi + 4], 0x24048100
jne 0x4770e4
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.004775b0
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x4c]
push edx
push ebp
push eax
call fcn.004775b0
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.004775b0
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.004775b0
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.004775b0
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 0x476ffe
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x18]
test eax, eax
jbe 0x4771a7
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x20]
push 0
push eax
push ecx
call fcn.00476a50
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4771a7
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x4771a7
mov edx, dword [esp + 0x2c]
push esi
push ebp
push edx
call fcn.004775b0
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 0x47717d
push esi
lea eax, [edi + 0xc]
push ebp
push eax
call fcn.004775b0
push esi
lea ecx, [edi + 0x1c]
push ebp
push ecx
call fcn.004775b0
push esi
lea edx, [edi + 0x20]
push ebp
push edx
call fcn.004775b0
push esi
add edi, 0x24
push ebp
push edi
call fcn.004775b0
add esp, 0x30
mov ecx, dword [esp + 0x34]
push esi
push ebp
push ecx
call fcn.004775b0
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 0x476f49
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 0x477293
add edi, 0x14
sub eax, edx
mov dword [esp + 0x50], eax
push esi
lea ecx, [edi - 8]
push ebp
push ecx
call fcn.004775b0
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x2c]
push edx
push eax
push edi
call fcn.004775b0
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x38]
push ecx
lea eax, [edi + 4]
push edx
push eax
call fcn.004775b0
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x44]
push ecx
lea eax, [edi + 8]
push edx
push eax
call fcn.004775b0
mov eax, dword [esp + 0x80]
add esp, 0x30
add edi, 0x28
dec eax
mov dword [esp + 0x50], eax
jne 0x477235
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x20]
push edi
lea edx, [ebx + 0xc]
push ecx
push edx
call fcn.004775b0
push esi
lea eax, [ebx + 0x28]
push ebp
push eax
call fcn.004775b0
push esi
lea ecx, [ebx + 0x2c]
push ebp
push ecx
call fcn.004775b0
push esi
lea edx, [ebx + 0x30]
push ebp
push edx
call fcn.004775b0
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.00477750
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.0048eb60
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.004779a0
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x47735b
mov ecx, eax
mov dword [ecx], ebp
mov eax, dword [esp + 0x90]
test eax, eax
je 0x477368
mov dword [eax], esi
mov eax, dword [esp + 0x88]
test eax, eax
je 0x477382
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.00477860
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.004775d0
add esp, 0x10
jmp case.0x476fba.4
mov eax, dword [esp + 0x58]
test eax, eax
mov dword [esp + 0x48], eax
jle case.0x476fba.4
mov eax, dword [esp + 0x14]
mov ecx, dword [edi]
push 0
push eax
push ecx
call fcn.00476a50
add esp, 0xc
mov dword [esp + 0x58], eax
test eax, eax
je 0x47746a
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 0x47746a
mov eax, dword [esp + 0x2c]
xor esi, esi
mov si, word [eax]
mov eax, esi
shr eax, 0xc
je 0x477452
cmp eax, 3
jne case.0x476fba.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.004775b0
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 0x477404
mov eax, dword [esp + 0x18]
push eax
push ebp
push edi
call fcn.004775b0
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 0x4773cb
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
jmp case.0x476fba.4
add edi, 0x10
mov eax, dword [edi - 0xc]
test eax, eax
jne 0x4774b7
mov eax, dword [edi - 4]
test eax, eax
je case.0x476fba.4
mov eax, dword [edi - 0x10]
lea ecx, [edi - 0x10]
test eax, eax
jne 0x4774ca
cmp dword [edi], 0
je case.0x476fba.4
mov edx, dword [edi - 8]
test edx, edx
je 0x4774da
cmp edx, 0xffffffff
jne case.0x476fba.5
xor ebx, ebx
xor edx, edx
cmp eax, dword [edi]
mov dword [esp + 0x10], ebx
setne dl
inc edx
test edx, edx
jle 0x477553
test ebx, ebx
je 0x4774f2
mov eax, dword [edi]
test eax, eax
je 0x477536
mov ecx, dword [esp + 0x14]
push 0
push ecx
push eax
call fcn.00476a50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x477536
mov eax, dword [esi]
test eax, eax
je 0x477536
mov ebx, dword [esp + 0x18]
test eax, 0x80000000
jne 0x477528
push ebx
push ebp
push esi
call fcn.004775b0
add esp, 0xc
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x477516
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 0x4774ec
mov esi, dword [esp + 0x18]
push esi
push ebp
push ecx
call fcn.004775b0
push esi
lea eax, [edi - 4]
push ebp
push eax
call fcn.004775b0
push esi
push ebp
push edi
call fcn.004775b0
mov ebx, dword [esp + 0x40]
add esp, 0x24
add edi, 0x14
jmp 0x4774a5