Function at 0x477c40
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x478469
sub esp, 0x48
mov ecx, dword [0x7c9604]
mov ebx, dword [0x7c9600]
test ebx, ebx
jne 0x47844d
mov ecx, dword [esp + 0x54]
cmp ecx, 4
jge 0x478204
cmp ecx, 3
jge 0x4780d7
cmp ecx, 2
jne 0x4780cb
mov ebx, dword [esp + 0x50]
movzx ebp, word [ebx]
cmp bp, 0x7069
jne 0x477feb
movzx ebp, byte [esp + 0x58]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x477fb9
xor eax, eax
xor edx, edx
mov esi, dword [0x7c8f48]
test esi, esi
jne 0x477f7a
test edx, edx
jne 0x477f5e
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x477d23
movzx edx, byte [0x7db0ec]
test dl, dl
je 0x477d23
cmp ecx, 3
jne 0x477f54
movzx eax, word [ebx]
cmp ax, 0x6374
jne 0x477f4a
movzx eax, byte [ebx + 2]
cmp al, 0x70
jne 0x477f40
mov eax, 3
mov byte [esp + 0x2f], al
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x10]
mov dword [esp], edx
mov byte [esp + 4], al
call fcn.00463fb0
mov eax, dword [esp + 8]
test eax, eax
je 0x477f22
mov ecx, dword [esp + 0x54]
cmp ecx, 3
jne 0x477f19
mov edx, dword [esp + 0x50]
movzx ebx, word [edx]
cmp bx, 0x6475
jne 0x477f14
movzx ebx, byte [edx + 2]
cmp bl, 0x70
jne 0x477ee5
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], 0x9800000c
lea ecx, [esp + 0x38]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00463060
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x477ec7
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x2c], 0x72
mov dword [eax + 0xa0], 0x77
mov ecx, dword [0x7db370]
test ecx, ecx
jne 0x477eaf
mov dword [eax + 0x38], eax
mov dword [eax + 0xac], eax
mov ecx, dword [eax + 0xfc]
mov dword [eax + 0x28], ecx
mov ecx, dword [eax + 0xfc]
mov dword [eax + 0x9c], ecx
movzx ecx, byte [0x7db0ea]
test cl, cl
je 0x477e2e
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
add esp, 0x48
ret
lea eax, [0x5d4180]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00403a80
mov eax, dword [0x7db370]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x477e9f
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x3c], ecx
lea eax, [0x5d4180]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00403a80
mov eax, dword [0x7db370]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x477e89
mov eax, dword [esp + 0x4c]
mov dword [eax + 0xb0], ecx
jmp 0x477e0a
mov edx, dword [esp + 0x4c]
lea edi, [edx + 0xb0]
mov eax, ecx
call fcn.0044b680
jmp 0x477e0a
mov edx, dword [esp + 0x4c]
lea edi, [edx + 0x3c]
mov eax, ecx
call fcn.0044b680
jmp 0x477e59
lea edi, [eax + 0x38]
call fcn.0044b680
lea edi, [eax + 0xac]
call fcn.0044b680
jmp 0x477dea
lea edx, [0x61d184]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 8
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
add esp, 0x48
ret
cmp ecx, 4
jne 0x477efb
mov ebx, dword [edx]
cmp ebx, 0x34706475
je 0x477d4f
cmp ecx, 4
jne 0x477dbe
mov ecx, dword [edx]
cmp ecx, 0x36706475
je 0x477d4f
jmp 0x477dbe
cmp ecx, 4
jmp 0x477ee8
cmp ecx, 4
mov edx, dword [esp + 0x50]
jmp 0x477ee8
movzx ecx, byte [esp + 0x2f]
test cl, 1
je 0x477d23
mov eax, dword [esp + 0x4c]
mov byte [eax + 0x138], 1
jmp 0x477d23
mov eax, 2
jmp 0x477d00
mov eax, 2
jmp 0x477d00
mov eax, 2
jmp 0x477d00
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
add esp, 0x48
ret
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], edx
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov edi, dword [esi]
mov edx, esi
call edi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x50]
movzx ebp, byte [esp + 0x58]
jmp 0x477cbf
mov eax, dword [esp + 0x4c]
test byte [eax], al
lea ecx, [eax + 0xfc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00476c00
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
movzx ebp, byte [esp + 0x58]
jmp 0x477cb1
cmp ecx, 3
jne 0x47801c
movzx ebp, word [ebx]
cmp bp, 0x6964
jne 0x4780c3
movzx ebp, byte [ebx + 2]
xchg ebp, eax
cmp al, 0x72
xchg ebp, eax
jne 0x478019
mov eax, dword [esp + 0x4c]
mov byte [eax + 0x13c], 1
jmp 0x477c9e
cmp ecx, 3
jne 0x478037
movzx ebp, word [ebx]
cmp bp, 0x7069
jne 0x478037
movzx ebp, byte [ebx + 2]
xchg ebp, eax
cmp al, 0x34
xchg ebp, eax
je 0x477c9e
mov dword [esp], 0
lea eax, [0x6275f4]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x25
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
call fcn.0043ade0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
lea edx, [0x5ea220]
mov dword [esp], edx
call fcn.00409a30
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0x7db370]
test eax, eax
jne 0x4780b8
mov eax, dword [esp + 0x40]
mov dword [edi], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
lea eax, [0x65f350]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edi
add esp, 0x48
ret
mov eax, dword [esp + 0x40]
call fcn.0044b680
jmp 0x478096
cmp ecx, 3
jmp 0x47801c
cmp ecx, 3
mov ebx, dword [esp + 0x50]
jmp 0x477fee
je 0x4781c5
je 0x478133
jne 0x47812a
mov ebx, dword [esp + 0x50]
movzx ebp, word [ebx]
cmp bp, 0x6475
jne 0x478125
movzx ebp, byte [ebx + 2]
xchg ebp, eax
cmp al, 0x70
xchg ebp, eax
je 0x477c9e
cmp ecx, 4
jne 0x478037
mov ebp, dword [ebx]
cmp ebp, 0x656c6966
jne 0x478037
mov eax, dword [esp + 0x4c]
mov byte [eax + 0x13b], 1
jmp 0x477c9e
cmp ecx, 4
jmp 0x478101
cmp ecx, 4
mov ebx, dword [esp + 0x50]
jmp 0x478101
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x61c449]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
call fcn.00402020
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4781b9
mov ecx, dword [esp + 0x54]
cmp ecx, 3
jne 0x4781b3
mov ebx, dword [esp + 0x50]
movzx ebp, word [ebx]
cmp bp, 0x7069
jne 0x4781ae
movzx ebp, byte [ebx + 2]
xchg ebp, eax
cmp al, 0x36
xchg ebp, eax
je 0x477c9e
cmp ecx, 3
jne 0x478037
movzx ebp, word [ebx]
cmp bp, 0x6374
jne 0x478037
movzx ebp, byte [ebx + 2]
xchg ebp, eax
cmp al, 0x70
xchg ebp, eax
je 0x477c9e
jmp 0x478037
cmp ecx, 3
jmp 0x478186
mov ebx, dword [esp + 0x50]
jmp 0x478186
mov ecx, dword [esp + 0x54]
cmp ecx, 3
jmp 0x4780df
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x61c428]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
call fcn.00402020
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4781f8
mov ecx, dword [esp + 0x54]
jmp 0x477c83
mov ecx, dword [esp + 0x54]
cmp ecx, 3
jmp 0x4780dd
je 0x47840e
je 0x478325
cmp ecx, 7
jge 0x47827a
cmp ecx, 4
jne 0x478271
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx]
cmp ebp, 0x78696e75
je 0x477c9e
cmp ecx, 7
jne 0x478037
mov ebp, dword [ebx]
cmp ebp, 0x736e6f63
jne 0x478037
movzx ebp, word [ebx + 4]
cmp bp, 0x6c6f
jne 0x478037
movzx ebp, byte [ebx + 6]
xchg ebp, eax
cmp al, 0x65
xchg ebp, eax
jne 0x478037
mov eax, dword [esp + 0x4c]
mov byte [eax + 0x108], 1
jmp 0x477c9e
cmp ecx, 7
mov ebx, dword [esp + 0x50]
jmp 0x47822f
je 0x4782e6
cmp ecx, 8
jne 0x4782e0
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx]
cmp ebp, 0x78696e75
jne 0x47829e
mov ebp, dword [ebx + 4]
cmp ebp, 0x6d617267
je 0x477c9e
cmp ecx, 0xa
jne 0x478037
mov dword [esp], ebx
lea eax, [0x61d88f]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00402170
movzx eax, byte [esp + 0xc]
test al, al
je 0x4782d3
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
jmp 0x477c9e
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
jmp 0x478037
mov ebx, dword [esp + 0x50]
jmp 0x47829e
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x61cd14]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 7
call fcn.00402020
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x47831c
mov ecx, dword [esp + 0x54]
cmp ecx, 4
jmp 0x478218
mov ecx, dword [esp + 0x54]
jmp 0x47827c
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x61c64f]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call fcn.00402020
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x478405
mov ecx, dword [esp + 0x54]
cmp ecx, 4
je 0x478392
jne 0x47838c
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx]
cmp ebp, 0x34706475
je 0x477c9e
cmp ecx, 4
jne 0x478037
mov ebp, dword [ebx]
cmp ebp, 0x36706475
je 0x477c9e
jmp 0x478037
mov ebx, dword [esp + 0x50]
jmp 0x478373
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x61c647]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call fcn.00402020
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4783f9
mov ecx, dword [esp + 0x54]
cmp ecx, 4
jne 0x4783f3
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx]
cmp ebp, 0x34706374
je 0x477c9e
cmp ecx, 4
jne 0x478037
mov ebp, dword [ebx]
cmp ebp, 0x36706374
je 0x477c9e
jmp 0x478037
mov ebx, dword [esp + 0x50]
jmp 0x4783da
mov ecx, dword [esp + 0x54]
cmp ecx, 4
jmp 0x47835c
mov ecx, dword [esp + 0x54]
jmp 0x478210
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x61c5d3]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call fcn.00402020
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x478441
mov ecx, dword [esp + 0x54]
jmp 0x477c7a
mov ecx, dword [esp + 0x54]
cmp ecx, 4
jmp 0x47820a
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ecx
add esp, 0x48
ret
call fcn.00449f20
jmp fcn.00477c40