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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x234
mov ebp, eax
mov dword [esp + 4], 1
lea eax, [esp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 0x220], edx
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call fcn.004e6b20
test eax, eax
je 0x516f03
mov eax, dword [esp + 0x10]
cmp eax, 0x301
jb 0x51691d
cmp eax, 0x310
jbe 0x51694e
mov dword [esp + 0x40], 2
mov dword [esp], 0x80000004
call fcn.004f73c0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp + 0x14]
mov dword [esp], ebp
mov dword [esp + 8], 0x2c
mov dword [esp + 4], eax
call fcn.004e6130
cmp eax, 0x2c
je 0x516978
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp + 0x14]
mov dword [esp + 4], 0x2c
mov dword [esp], eax
call fcn.004f73c0
lea eax, [esp + 0x20]
mov dword [esp + 4], 0xc
mov dword [esp], eax
call fcn.004e6d10
lea eax, [esp + 0x2c]
mov dword [esp + 4], 0xc
mov dword [esp], eax
call fcn.004e6d10
mov eax, dword [esp + 0x220]
mov edx, dword [0x5d1860]
mov ecx, dword [eax]
add edx, ecx
test ecx, ecx
mov dword [esp + 0x21c], ecx
mov dword [eax], edx
je 0x517095
mov edx, ecx
mov ebx, dword [esp + 0x254]
xor eax, eax
mov dword [edx], 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword [edx + 0x44], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 0x48], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 0x4c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0x38], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0x3c], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 0x40], ecx
movzx ecx, word [esp + 0x14]
mov word [edx + 0x5c], cx
movzx ecx, word [esp + 0x18]
mov word [edx + 0x60], cx
movzx ecx, word [esp + 0x1c]
mov dword [edx + 4], eax
mov word [edx + 0x5e], cx
mov dword [edx + 8], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0xc], eax
mov eax, edx
add edx, 8
xor ecx, ecx
nop
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
add eax, 8
mov eax, dword [esp + 0x21c]
xor edx, edx
mov ecx, 0x30
add ecx, eax
mov esi, 0x30
add esi, eax
lea edi, [eax + 0x28]
mov dword [eax + 0x34], ecx
lea ecx, [eax + 0x28]
mov dword [eax + 0x30], esi
lea esi, [eax + 0x20]
mov dword [eax + 0x2c], edi
lea edi, [eax + 0x20]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], edi
mov dword [eax + 0x54], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x50], edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x516c52
mov edx, dword [esp + 0x220]
lea ecx, [eax*8]
mov esi, dword [esp + 0x21c]
mov edi, eax
mov eax, dword [edx]
mov dword [esp + 0x230], edx
lea edx, [ecx + edi*4]
mov ecx, eax
add ecx, edx
test eax, eax
mov edi, dword [esp + 0x230]
mov dword [edi], ecx
mov dword [esi + 8], eax
je 0x517060
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004e6e30
test eax, eax
je 0x516f03
test bl, 0x10
je 0x516b31
mov eax, dword [esp + 0x220]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x21c]
mov ecx, eax
mov eax, dword [eax]
mov edi, esi
shl esi, 2
test eax, eax
lea edi, [eax + edi*4]
mov dword [ecx], edi
mov dword [edx + 0xc], eax
je 0x51702b
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004e6130
cmp eax, esi
jne 0x516f03
test bl, 8
je 0x516b79
mov eax, dword [esp + 0x220]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x21c]
mov esi, eax
mov eax, dword [eax]
mov edi, edx
shl edx, 2
test eax, eax
lea edi, [eax + edi*4]
mov dword [esi], edi
mov dword [ecx + 0x18], eax
je 0x516ff6
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004e6130
test eax, eax
je 0x516f03
test bl, 4
jne 0x516c0d
test ebx, 0x80
je 0x516c52
mov eax, dword [esp + 0x21c]
mov edx, dword [esp + 0x220]
mov ecx, eax
movzx ebx, word [eax + 0x5e]
mov eax, dword [edx]
mov esi, ebx
shl esi, 3
test eax, eax
lea edi, [eax + ebx*8]
mov dword [edx], edi
mov dword [ecx + 0x10], eax
je 0x516f10
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004e6e30
test eax, eax
je 0x516f03
mov eax, dword [esp + 0x220]
mov edx, dword [esp + 0x21c]
mov ecx, eax
mov eax, dword [eax]
test eax, eax
lea ebx, [eax + ebx*8]
mov dword [ecx], ebx
mov dword [edx + 0x14], eax
je 0x516edb
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004e6e30
test eax, eax
je 0x516f03
jmp 0x516c52
mov eax, dword [esp + 0x21c]
mov edx, dword [esp + 0x220]
mov ebx, eax
mov esi, edx
movzx ecx, word [eax + 0x5e]
mov eax, dword [edx]
mov edx, ecx
shl edx, 3
test eax, eax
lea ecx, [eax + ecx*8]
mov dword [esi], ecx
mov dword [ebx + 0x10], eax
je 0x516fc1
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004e6e30
test eax, eax
je 0x516f03
mov eax, dword [esp + 0x18]
test eax, eax
je 0x516dfc
mov edx, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
mov esi, eax
mov ebx, eax
shl esi, 3
mov eax, dword [edx]
test eax, eax
lea ebx, [eax + ebx*8]
mov dword [edx], ebx
mov dword [ecx + 4], eax
je 0x516f83
mov edx, dword [esp + 0x10]
cmp edx, 0x304
mov edx, esi
jae 0x516ca3
mov edx, esi
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
mov ebx, edx
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.004e6130
cmp eax, ebx
jne 0x516f03
mov eax, dword [esp + 0x10]
cmp eax, 0x304
jae 0x516de6
mov eax, dword [esp + 0x21c]
mov edx, dword [0x606064]
movzx ecx, word [eax + 0x60]
mov eax, dword [eax + 4]
mov dword [esp + 0x214], eax
mov eax, ecx
shl eax, 2
mov dword [esp + 0x218], ecx
mov dword [esp], eax
call dword [edx + pe_nt_image_headers32]
mov ecx, dword [esp + 0x218]
mov edi, eax
shl ecx, 0
mov ebx, edi
mov esi, dword [esp + 0x214]
mov dword [esp + 0x210], edi
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x218]
test eax, eax
jle 0x516dce
mov edx, dword [esp + 0x214]
lea ecx, [edx + eax*8]
mov eax, ecx
sub eax, edx
and eax, 0xfffffff0
add eax, edx
mov dword [esp + 0x228], eax
cmp edx, eax
jge 0x516d9e
xor eax, eax
mov al, byte [ebx]
mov word [edx], ax
xor eax, eax
mov al, byte [ebx + 1]
mov word [edx + 2], ax
xor eax, eax
mov al, byte [ebx + 2]
mov word [edx + 4], ax
xor eax, eax
mov al, byte [ebx + 3]
mov word [edx + 6], ax
xor eax, eax
mov al, byte [ebx + 4]
mov word [edx + 8], ax
xor eax, eax
mov al, byte [ebx + 5]
mov word [edx + 0xa], ax
xor eax, eax
mov al, byte [ebx + 6]
mov word [edx + 0xc], ax
xor eax, eax
mov al, byte [ebx + 7]
add ebx, 8
mov word [edx + 0xe], ax
mov eax, dword [esp + 0x228]
add edx, 0x10
cmp edx, eax
jl 0x516d47
cmp edx, ecx
jge 0x516dce
xor eax, eax
mov al, byte [ebx]
mov word [edx], ax
xor eax, eax
mov al, byte [ebx + 1]
mov word [edx + 2], ax
xor eax, eax
mov al, byte [ebx + 2]
mov word [edx + 4], ax
xor eax, eax
mov al, byte [ebx + 3]
add ebx, 4
mov word [edx + 6], ax
add edx, 8
cmp edx, ecx
jl 0x516da2
mov eax, dword [esp + 0x210]
mov edx, dword [0x606064]
mov dword [esp], eax
call dword [edx + 0x134]
jmp 0x516dfc
mov eax, dword [esp + 0x21c]
mov eax, dword [eax + 4]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004f73c0
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x516e17
mov eax, dword [esp + 0x21c]
mov dword [eax + 0x50], 0
jmp 0x516e93
lea eax, [esp + 0x88]
mov dword [esp], ebp
mov dword [esp + 8], 0x180
mov dword [esp + 4], eax
call fcn.004e6130
cmp eax, 0x180
je 0x516e46
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.00511b30
mov edx, dword [esp + 0x220]
add eax, 3
mov ecx, dword [esp + 0x21c]
mov edi, dword [edx]
mov ebx, ecx
mov ecx, eax
mov eax, edi
and ecx, 0xfffffffc
add eax, ecx
test edi, edi
mov dword [edx], eax
mov dword [ebx + 0x50], edi
je 0x516f45
lea esi, [esp + 0x88]
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x21c]
mov dword [esp], 0x5d1860
mov dword [esp + 4], eax
call fcn.004f83d0
mov eax, dword [esp + 0x21c]
mov dword [esp], 0x5d1860
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.00508310
test eax, eax
je 0x516f03
mov eax, dword [esp + 0x21c]
add esp, 0x234
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x78], 2
mov dword [esp], 0x80000013
mov dword [esp + 4], esi
call fcn.004f73c0
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x70], 2
mov dword [esp], 0x80000013
mov dword [esp + 4], esi
call fcn.004f73c0
mov dword [esp + 0x74], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x208], 2
mov dword [esp], 0x80000013
mov dword [esp + 4], ecx
call fcn.004f73c0
mov dword [esp + 0x20c], eax
lea eax, [esp + 0x208]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x80], 2
mov dword [esp], 0x80000013
mov dword [esp + 4], esi
call fcn.004f73c0
mov dword [esp + 0x84], eax
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x68], 2
mov dword [esp], 0x80000013
mov dword [esp + 4], edx
call fcn.004f73c0
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x60], 2
mov dword [esp], 0x80000013
mov dword [esp + 4], edx
call fcn.004f73c0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x58], 2
mov dword [esp], 0x80000013
mov dword [esp + 4], esi
call fcn.004f73c0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x50], 2
mov dword [esp], 0x80000013
mov dword [esp + 4], edx
call fcn.004f73c0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [0x5d1860]
mov dword [esp], 0x80000013
mov dword [esp + 4], eax
mov dword [esp + 0x48], 2
call fcn.004f73c0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x234
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret