Function at 0x470dc0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1ec]
mov eax, dword [eax]
test byte [eax + 0x3c], 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], eax
je 0x470de7
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x20]
push ebx
mov ebx, dword [ebp + 0xc]
lea ebx, [ebx + ebx*4]
shl ebx, 4
cmp dword [ebp + 0x14], 0
mov edx, dword [ebx + ecx + 0x38]
lea eax, [ebx + ecx + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
je 0x470e53
cmp dword [ebp + 0x10], 0
jne 0x470e4b
cmp dword [ecx], 1
jg 0x470e4b
mov eax, dword [esi + 0x24]
test eax, eax
je 0x470e2e
test dword [eax + 4], 0x200000
jne 0x470e4b
mov edx, dword [esi]
call fcn.0044ce80
test eax, 0x200000
jne 0x470e4b
mov edx, dword [esi + 0x30]
call fcn.0044ce80
test eax, 0x200000
je 0x470e53
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
push edi
mov edi, dword [edx + 0x3c]
test edi, edi
je 0x470e6b
cmp dword [esi + 0x3c], 0
jne 0x471073
cmp dword [edx + 0x40], 0
jne 0x471073
movzx ecx, word [esi + 6]
mov dword [ebp - 0x24], ecx
test cl, 0x40
je 0x470e89
test edi, edi
jne 0x471073
cmp dword [eax], 0
je 0x471073
movzx eax, word [edx + 6]
test al, 1
jne 0x471073
test edi, edi
je 0x470eb8
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jg 0x471073
cmp dword [ebp + 0x10], 0
jne 0x471073
and ecx, 1
je 0x470ec7
cmp dword [ebp + 0x14], 0
jne 0x471073
cmp dword [esi + 0x30], 0
je 0x470ed7
cmp dword [edx + 0x30], 0
jne 0x471073
cmp dword [ebp + 0x10], 0
je 0x470ee7
cmp dword [edx + 0x30], 0
jne 0x471073
test edi, edi
je 0x470f02
cmp dword [esi + 0x24], 0
jne 0x471073
test edi, edi
je 0x470f02
test cx, cx
jne 0x471073
movzx eax, word [edx + 6]
test eax, 0x1800
jne 0x471073
test dword [ebp - 0x24], 0x800
je 0x470f24
cmp dword [edx + 0x34], 0
jne 0x471073
mov edi, dword [ebp - 4]
test byte [ebx + edi + 0x2c], 0x20
lea eax, [ebx + edi + 0x2c]
mov dword [ebp - 0x28], eax
jne 0x471073
cmp dword [edx + 0x34], 0
je 0x470fd5
cmp dword [edx + 0x30], 0
jne 0x471073
cmp dword [ebp + 0x10], 0
jne 0x471073
test cx, cx
jne 0x471073
cmp dword [edi], 1
jne 0x471073
mov eax, edx
jmp 0x470f70
test byte [eax + 6], 5
jne 0x471073
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x470f8b
cmp byte [eax + 4], 0x74
jne 0x471073
mov edi, dword [eax + 0x20]
cmp dword [edi], 1
jl 0x471073
mov edi, dword [edx]
mov eax, dword [eax]
mov edi, dword [edi]
cmp edi, dword [eax]
jne 0x471073
mov eax, ecx
test eax, eax
jne 0x470f70
mov eax, dword [esi + 0x30]
test eax, eax
je 0x470fd5
cmp dword [eax], ecx
jle 0x470fd5
mov eax, dword [eax + 4]
add eax, 0x14
lea esp, [esp]
cmp word [eax], 0
je 0x471073
mov edx, dword [esi + 0x30]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x470fc0
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + eax + 0x10]
push 0
lea edi, [ebx + eax + 0x10]
mov eax, dword [ebp + 8]
push 0
push 0
push 0x15
mov dword [ebp - 0x14], edi
mov dword [eax + 0x1ec], ecx
call fcn.0046bef0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x1ec], edx
mov eax, dword [ecx + 0x34]
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4710b3
lea esp, [esp]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x40]
mov ecx, dword [ebp - 8]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x3c]
mov dword [ebp - 0x20], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [ebp - 0x24], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
call fcn.0045f1c0
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30], edi
mov dword [esi + 0x20], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x47107c
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x34], edx
jmp 0x47108f
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x471089
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], esi
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x41], 0
jne 0x4713fb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x471020
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [ebx + eax + 0xc]
call fcn.00445310
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
call fcn.00445310
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [ebp - 8]
call fcn.00445310
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebx + eax + 0xc], ecx
mov dword [ebx + eax + 0x14], ecx
lea ebx, [ebx + eax + 0x18]
mov eax, dword [ebx]
mov dword [edi], ecx
mov dword [edx], ecx
cmp eax, ecx
je 0x471143
movzx ecx, word [eax + 0x24]
cmp ecx, 1
jne 0x471138
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x198]
test ecx, ecx
jne 0x47111c
mov ecx, edx
mov edx, dword [ecx + 0x20c]
mov dword [eax + 0x44], edx
mov dword [ecx + 0x20c], eax
mov dword [ebx], 0
mov ebx, esi
mov dword [ebp - 0x20], ebx
jmp 0x471153
dec ecx
mov word [eax + 0x24], cx
mov dword [ebx], 0
mov ebx, esi
mov dword [ebp - 0x20], ebx
jmp 0x471153
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov esi, dword [eax]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x20]
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], eax
test eax, eax
je 0x471179
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx]
mov byte [ebp + 0xb], dl
jmp 0x471197
push 0
xor ecx, ecx
xor eax, eax
mov edx, edi
call fcn.0045f960
add esp, 4
mov dword [ebx + 0x20], eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4713ec
cmp esi, 1
jle 0x4711be
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push edi
call fcn.0045a180
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp byte [edi + 0x41], 0
mov dword [ebp - 4], eax
jne 0x4713ec
test esi, esi
jle 0x471219
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
add eax, 8
mov dword [ebp - 0x18], eax
lea eax, [ecx + edx + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], esi
jmp 0x4711e0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx + 0x38]
mov esi, dword [ebp - 8]
call fcn.0044e110
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov esi, eax
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov esi, 0x50
push esi
push 0
push eax
call fcn.004bad00
add dword [ebp - 0x14], esi
add dword [ebp - 0x18], esi
add esp, 0xc
dec dword [ebp - 0x24]
jne 0x4711e0
mov cl, byte [ebp + 0xb]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov byte [edx + eax + 0x2c], cl
mov ecx, dword [ebx]
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp + 8], eax
cmp dword [ecx], eax
jle 0x471286
mov dword [ebp - 0x14], eax
lea ecx, [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x14]
cmp dword [eax + edx + 4], 0
jne 0x471277
mov ebx, dword [eax + edx + 8]
push esi
call fcn.004529b0
add esp, 4
mov esi, eax
call fcn.00445550
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0xc]
mov dword [edx + eax + 4], esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0x14], 0x18
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ecx]
jl 0x471240
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx]
push ecx
push edx
push eax
push esi
call fcn.00465d80
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x4712c7
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x28]
push ecx
push edx
push eax
push esi
call fcn.00465d80
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x2c]
push ecx
push edx
push eax
push esi
call fcn.00465c80
add esp, 0x20
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x30]
xor ecx, ecx
mov dword [ebp - 0x24], eax
cmp eax, ecx
je 0x471307
mov dword [ebp + 8], ecx
cmp dword [eax], ecx
jle 0x4712fb
lea ebx, [ebx]
mov edx, dword [eax + 4]
xor eax, eax
mov word [edx + ecx + 0x14], ax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
inc edx
add ecx, 0x18
mov dword [ebp + 8], edx
cmp edx, dword [eax]
jl 0x4712e0
mov dword [ebx + 0x30], eax
mov dword [edi + 0x30], 0
jmp 0x47131f
mov eax, dword [ebx + 0x30]
cmp eax, ecx
je 0x47131f
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
push ecx
push edx
push eax
push esi
call fcn.00465d80
add esp, 0x10
mov eax, dword [edi + 0x24]
test eax, eax
je 0x471339
push 0
push 0
push eax
push esi
call fcn.00462f30
add esp, 0x10
mov dword [ebp + 8], eax
jmp 0x471340
mov dword [ebp + 8], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0x24]
je 0x471396
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x24], ecx
mov edx, dword [edi]
mov ecx, dword [ebx + 0x2c]
push edx
push eax
push ecx
push esi
call fcn.00465c80
push 0
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x2c]
push 0
push eax
push esi
call fcn.00462f30
mov edx, dword [ebx + 0x2c]
push edx
mov ecx, esi
call fcn.0045ed40
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x28]
push 0
push eax
push esi
call fcn.004586e0
add esp, 0x30
mov dword [ebx + 0x28], eax
jmp 0x4713b8
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
push ecx
push edx
push eax
push esi
call fcn.00465c80
mov dword [ebx + 0x24], eax
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.0045ed40
add esp, 0x14
mov dword [ebx + 0x24], eax
mov cx, word [edi + 6]
and cx, 1
or word [ebx + 6], cx
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4713d5
mov dword [ebx + 0x3c], eax
mov dword [edi + 0x3c], 0
mov ebx, dword [ebx + 0x34]
mov edx, dword [edi + 0x34]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], edx
test ebx, ebx
jne 0x471150
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
push 1
push eax
push edi
call fcn.0044f070
add esp, 0xc
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret