Function at 0x4717a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1ec]
mov eax, dword [eax]
test byte [eax + 0x3c], 1
push edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
jne 0x4717fd
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x20]
lea ebx, [ebx + ebx*4]
shl ebx, 4
cmp dword [ebp + 0x10], 0
mov edx, dword [ebx + ecx + 0x38]
lea eax, [ebx + ecx + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
je 0x471806
cmp dword [ebp + 0x14], 0
je 0x471811
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x471811
cmp dword [ecx], 1
jg 0x4717fd
mov eax, dword [edx + 0x3c]
mov edi, dword [edx + 0x20]
test eax, eax
je 0x471821
cmp dword [esi + 0x3c], 0
jne 0x4717fd
cmp dword [edx + 0x40], 0
jne 0x4717fd
movzx edx, word [esi + 6]
mov dword [esp + 0x2c], edx
test dl, 0x40
je 0x471838
test eax, eax
jne 0x4717fd
cmp dword [edi], 0
je 0x4717fd
mov edx, dword [esp + 0x14]
movzx edx, word [edx + 6]
mov dword [esp + 0x34], edx
test dl, 1
jne 0x4717fd
test eax, eax
je 0x47185d
cmp dword [ecx], 1
jg 0x4717fd
cmp dword [ebp + 0x10], 0
jne 0x4717fd
mov edx, dword [esp + 0x2c]
and edx, 1
mov dword [esp + 0x28], edx
je 0x471870
cmp dword [ebp + 0x14], 0
jne 0x4717fd
cmp dword [esi + 0x30], 0
mov edi, dword [esp + 0x14]
je 0x471884
cmp dword [edi + 0x30], 0
jne 0x4717fd
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x471895
cmp dword [edi + 0x30], 0
jne 0x4717fd
test eax, eax
je 0x4718b3
cmp dword [esi + 0x24], 0
jne 0x4717fd
test eax, eax
je 0x4718b3
cmp word [esp + 0x28], 0
jne 0x4717fd
test dword [esp + 0x34], 0x1800
jne 0x4717fd
test dword [esp + 0x2c], 0x800
je 0x4718d5
cmp dword [edi + 0x34], 0
jne 0x4717fd
test byte [ebx + ecx + 0x2c], 0x20
lea eax, [ebx + ecx + 0x2c]
mov dword [esp + 0x3c], eax
jne 0x4717fd
cmp dword [edi + 0x34], 0
je 0x47197b
cmp dword [edi + 0x30], 0
jne 0x4717fd
test edx, edx
jne 0x4717fd
cmp word [esp + 0x28], dx
jne 0x4717fd
cmp dword [ecx], 1
jne 0x4717fd
mov eax, edi
test byte [eax + 6], 5
jne 0x4717fd
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x471935
cmp byte [eax + 4], 0x74
jne 0x4717fd
mov edx, dword [eax + 0x20]
cmp dword [edx], 1
jl 0x4717fd
mov edx, dword [edi]
mov eax, dword [eax]
mov edx, dword [edx]
cmp edx, dword [eax]
jne 0x4717fd
mov eax, ecx
test eax, eax
jne 0x47191a
mov eax, dword [esi + 0x30]
test eax, eax
je 0x47197b
cmp dword [eax], ecx
jle 0x47197b
mov eax, dword [eax + 4]
add eax, 0x14
cmp word [eax], 0
je 0x4717fd
mov edx, dword [esi + 0x30]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x471966
mov eax, dword [esp + 0x1c]
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 [esp + 0x44], edi
mov dword [eax + 0x1ec], ecx
call fcn.004562d0
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x1ec], edx
mov eax, dword [ecx + 0x34]
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x471a5a
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x2c], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esp + 0x44], 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.0044e800
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x471a1d
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x34], edx
jmp 0x471a31
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x471a2b
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], esi
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x40], 0
jne 0x471de6
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4719c4
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [ebx + eax + 0xc]
call fcn.00420b20
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
call fcn.00420b20
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [esp + 0x18]
call fcn.00420b20
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
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 0x471af6
movzx ecx, word [eax + 0x28]
cmp cx, 1
jne 0x471aeb
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x198]
test ecx, ecx
jne 0x471ace
mov ecx, edx
mov edx, dword [ecx + 0x20c]
mov dword [eax + 0x48], edx
mov dword [ecx + 0x20c], eax
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x24], ebx
jmp 0x471b04
dec ecx
mov word [eax + 0x28], cx
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x24], ebx
jmp 0x471b04
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x20]
mov eax, dword [ebx + 0x20]
mov esi, dword [edi]
mov byte [esp + 0x13], 0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x471b29
mov ecx, dword [esp + 0x3c]
mov dl, byte [ecx]
mov byte [esp + 0x13], dl
jmp 0x471b4a
mov edx, dword [esp + 0x18]
push 0
xor ecx, ecx
xor eax, eax
call fcn.0045b140
add esp, 4
mov dword [ebx + 0x20], eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x471dd4
cmp esi, 1
jle 0x471b7a
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esi - 1]
push edx
push ecx
call fcn.0045b040
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp byte [edx + 0x40], 0
mov dword [esp + 0x1c], eax
jne 0x471dd4
test esi, esi
jle 0x471be1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
add edi, 8
lea edx, [eax + ecx + 8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], esi
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0x38]
mov esi, dword [esp + 0x18]
call fcn.0045aed0
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov esi, eax
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov esi, 0x50
push esi
push 0
push eax
call fcn.004aaf30
add dword [esp + 0x34], esi
add dword [esp + 0x38], esi
add esp, 0xc
sub dword [esp + 0x34], 1
jne 0x471ba0
mov ecx, dword [esp + 0x30]
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov byte [ecx + edx + 0x2c], al
mov ecx, dword [ebx]
xor eax, eax
cmp dword [ecx], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
jle 0x471c58
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 4]
add eax, edx
cmp dword [eax + 4], 0
jne 0x471c40
mov ebx, dword [eax + 8]
push edi
call fcn.00420f60
add esp, 4
mov esi, eax
call fcn.00423290
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov dword [edx + ecx + 4], esi
mov ecx, eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
inc edx
add eax, 0x18
cmp edx, dword [ecx]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
jl 0x471c09
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx]
push ecx
push edx
push edi
call fcn.00471590
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x471ca9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x28]
push ecx
push edx
push edi
call fcn.00471590
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x2c]
add esp, 0xc
push ecx
push edx
push eax
push edi
call fcn.00471480
add esp, 0x10
mov dword [ebx + 0x2c], eax
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x471cc0
mov dword [ebx + 0x30], eax
mov dword [esi + 0x30], 0
jmp 0x471ce2
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x471ce2
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x20]
push edx
push ecx
push edi
mov esi, eax
call fcn.00471590
mov esi, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esi + 0x24]
test eax, eax
je 0x471cfd
push 0
push 0
push eax
push edi
call fcn.0044df40
add esp, 0x10
mov dword [esp + 0x2c], eax
jmp 0x471d05
mov dword [esp + 0x2c], 0
cmp dword [ebp + 0x14], 0
je 0x471d6c
mov edx, dword [ebx + 0x24]
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x2c], edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x24], eax
mov ecx, dword [esi]
mov eax, dword [ebx + 0x2c]
push ecx
push edx
push eax
push edi
call fcn.00471480
push 0
mov dword [ebx + 0x2c], eax
mov esi, dword [esi + 0x2c]
push 0
push esi
push edi
call fcn.0044df40
mov edi, dword [esp + 0x38]
mov ebx, dword [ebx + 0x2c]
push eax
mov eax, edi
call fcn.0044dab0
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
add esp, 0x24
mov dword [esi + 0x2c], eax
mov ecx, dword [ebx + 0x28]
push 0
push ecx
push edi
call fcn.0044e2d0
add esp, 0xc
mov dword [esi + 0x28], eax
jmp 0x471da1
mov edx, dword [esi]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x24]
push edx
push eax
push ecx
push edi
call fcn.00471480
mov edx, dword [esp + 0x3c]
mov dword [ebx + 0x24], eax
mov ebx, eax
mov eax, dword [esp + 0x28]
push edx
call fcn.0044dab0
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
add esp, 0x14
mov dword [ecx + 0x24], eax
mov esi, ecx
mov dx, word [ebx + 6]
and dx, 1
or word [esi + 6], dx
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x471dbe
mov dword [esi + 0x3c], eax
mov dword [ebx + 0x3c], 0
mov esi, dword [esi + 0x34]
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], eax
test esi, esi
jne 0x471b00
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0046c450
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret