Function at 0x516f30
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xe4]
cmp eax, dword [ecx + 8]
jbe 0x5179bc
sub esp, 0x164
mov eax, dword [esp + 0x170]
mov ecx, dword [eax + 0x1c]
cmp ecx, 3
ja 0x516f75
cmp ecx, 2
ja 0x516f6e
mov edx, 0x1f
jmp 0x516f92
mov edx, 0x21
jmp 0x516f92
cmp ecx, 4
jne 0x516f81
mov edx, 0x24
jmp 0x516f92
cmp ecx, 6
ja 0x516f8d
mov edx, 0x25
jmp 0x516f92
mov edx, 0x24
mov dword [esp + 0x3c], edx
mov dword [esp], ecx
call fcn.00515530
mov eax, dword [esp + 0x10]
test eax, eax
je 0x516fb3
mov ecx, 7
lea eax, [0x57ff38]
jmp 0x516fc7
mov dword [esp], 0
call fcn.0044d1c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004e2e80
mov eax, dword [esp + 0x168]
movzx ecx, byte [eax + 0x18]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test cl, cl
jne 0x517002
movzx ebp, byte [eax + 0x19]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x517002
cmp edx, 4
jb 0x5179b1
mov edx, 4
movzx ebp, byte [eax + 0x19]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x517100
mov dword [esp + 0x38], edx
mov dword [esp + 0x84], ebx
mov ecx, dword [eax + 0x30]
mov edx, ecx
sar ecx, 0x1f
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], 0xa
call fcn.00492190
lea eax, [esp + 0x5c]
mov dword [esp], eax
lea eax, [0x57f2e8]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
lea eax, [0x57f2dd]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
call fcn.0044cfb0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov edx, dword [esp + 0x84]
mov dword [esp], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 4], edx
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
lea eax, [esp + 0x9c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004ace50
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x168]
mov dword [esp + 0x38], edx
mov dword [esp + 0x84], ebx
mov esi, dword [esp + 0x170]
mov ecx, dword [esi + 0x28]
mov ebp, dword [esi + 0x24]
cmp ecx, 1
jl 0x51717e
lea edi, [ecx - 1]
cmp ecx, edi
jb 0x5179aa
mov dword [esp + 0x34], ecx
mov dword [esp + 0x80], ebp
lea eax, [ecx + ebp - 1]
mov dword [esp], eax
lea eax, [0x5c6398]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.00402810
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x170]
mov edi, eax
mov eax, dword [esp + 0x168]
jmp 0x517180
xor edi, edi
xchg edi, eax
test al, al
xchg edi, eax
je 0x517194
mov edi, ebx
lea ebx, [ecx - 1]
cmp ecx, ebx
jae 0x517198
jmp 0x5179a1
mov edi, ebx
mov ebx, ecx
mov dword [esi + 0x28], ebx
mov ecx, dword [0x714170]
test ecx, ecx
jne 0x5171aa
mov dword [esi + 0x24], ebp
jmp 0x5171c1
lea ecx, [esi + 0x24]
mov ebx, edi
mov edi, ecx
mov eax, ebp
call fcn.00461af0
mov eax, dword [esp + 0x168]
mov edi, ebx
lea edi, [esp + 0x124]
call fcn.00462140
mov ecx, dword [esp + 0x124]
test ecx, ecx
je 0x5173e3
movzx ecx, byte [ecx + 0x14]
test cl, cl
je 0x5173dd
mov ecx, dword [esp + 0x144]
test ecx, ecx
jne 0x5171fc
xor ebx, ebx
xor ecx, ecx
jmp 0x5173e7
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov eax, dword [esp + 0x170]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
lea eax, [0x57f557]
mov dword [esp], eax
mov dword [esp + 4], 4
lea eax, [esp + 0x9c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004ace50
mov eax, dword [esp + 0x14]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov edx, dword [esp + 0x170]
mov ebx, dword [edx + 0x20]
mov ebp, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x14]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x170]
mov edx, dword [eax + 0x20]
mov edx, dword [edx + 0x18]
mov dword [esp], edx
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x55b8a0]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
lea eax, [0x57f74e]
mov dword [esp], eax
mov dword [esp + 4], 5
lea eax, [esp + 0xa4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004ace50
mov eax, dword [esp + 0x168]
mov edx, dword [eax + 0x20]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test edx, edx
jne 0x51736b
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x8c]
jmp 0x51738c
mov eax, dword [edx]
mov ecx, dword [esp + 0x170]
mov ebx, dword [ecx + 0x20]
mov dword [esp], ebx
call eax
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 4]
mov ebp, dword [esp + 8]
test ebx, ebx
jne 0x517396
mov ebx, ebp
mov ecx, eax
jmp 0x5173d0
test ebp, ebp
je 0x5173d0
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
lea ecx, [0x5c57ac]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
call fcn.0044cfb0
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x168]
mov edx, dword [esp + 0x38]
jmp 0x5173e7
xor ebx, ebx
xor ecx, ecx
jmp 0x5173e7
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x94], ecx
movzx ebp, byte [eax + 5]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x517739
movzx ebp, byte [eax + 6]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x51759c
mov eax, dword [esp + 0x170]
lea esi, [eax + 8]
lea edi, [esp + 0xb4]
call fcn.004621ae
lea edi, [esp]
lea esi, [esp + 0xb4]
call fcn.004621ae
mov ecx, dword [esp + 0x184]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x188]
mov dword [esp + 0x18], ecx
call fcn.0047e6f0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x58], ecx
lea edi, [esp + 0xfc]
xor eax, eax
call fcn.00461cc6
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x55b8a0]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x170]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x120], eax
lea eax, [0x5c6a04]
mov dword [esp], eax
mov edx, dword [esp + 0x16c]
mov dword [esp + 4], edx
lea ebx, [0x5866f4]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x18
lea ebx, [esp + 0xfc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], 5
call fcn.004acd80
jmp 0x517840
mov eax, dword [esp + 0x170]
lea esi, [eax + 8]
lea edi, [esp + 0xc8]
call fcn.004621ae
lea edi, [esp]
lea esi, [esp + 0xc8]
call fcn.004621ae
lea edi, [esp + 0x14]
lea esi, [0x6eeb40]
call fcn.004621ae
call fcn.00482ce0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x50], ecx
lea edi, [esp + 0xfc]
xor eax, eax
call fcn.00461cc6
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x55b8a0]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3b9aca00
call fcn.0045b860
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x55b8a0]
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x170]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x120], eax
lea eax, [0x5c6a04]
mov dword [esp], eax
mov edx, dword [esp + 0x16c]
mov dword [esp + 4], edx
lea ebx, [0x5875e2]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x1a
lea ebx, [esp + 0xfc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], 5
call fcn.004acd80
jmp 0x517840
lea edi, [esp + 0xdc]
xor eax, eax
call fcn.00461cc8
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
call fcn.00409020
mov ecx, dword [esp + 4]
lea edx, [0x55b8a0]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.00409130
mov ecx, dword [esp + 8]
lea edx, [0x55c020]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
call fcn.00409130
mov ecx, dword [esp + 8]
lea edx, [0x55c020]
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ecx
mov ecx, dword [esp + 0x170]
mov ebx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.00409130
mov ecx, dword [esp + 8]
lea edx, [0x55c020]
mov dword [esp + 0xf4], edx
mov dword [esp + 0xf8], ecx
lea ecx, [0x5c6a04]
mov dword [esp], ecx
mov ebx, dword [esp + 0x16c]
mov dword [esp + 4], ebx
lea ebp, [0x5847e8]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 0x14
lea ebp, [esp + 0xdc]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 4
call fcn.004acd80
xor eax, eax
jmp 0x51798b
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x174]
lea edx, [ecx + eax*8]
mov ebx, dword [edx]
mov dword [esp + 0x88], ebx
mov edx, dword [edx + 4]
mov dword [esp + 0x40], edx
lea ebp, [0x560300]
mov dword [esp], ebp
mov esi, dword [esp + 0x180]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.0040ef50
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x7c], eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x55b8a0]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x55c020]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
lea eax, [0x5c6a04]
mov dword [esp], eax
mov edx, dword [esp + 0x16c]
mov dword [esp + 4], edx
lea ebx, [0x581789]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0xd
lea ebp, [esp + 0xa4]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 2
call fcn.004acd80
mov eax, dword [esp + 0x168]
mov dword [esp], eax
mov ecx, dword [esp + 0x16c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xc], edx
call fcn.00517b50
mov eax, dword [esp + 0x58]
inc eax
mov ecx, dword [esp + 0x178]
cmp ecx, eax
jg 0x517847
add esp, 0x164
ret
mov edx, ecx
mov ecx, ebx
call fcn.00461b90
mov eax, edi
call fcn.00461bd0
mov ecx, 4
call fcn.00461b90
nop
call fcn.004606e0
jmp fcn.00516f30