Function at 0x1005e4d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push ebx
lea ebx, [eax*8]
sub ebx, eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
add ebx, ebx
push edi
mov edi, dword [ecx + 0x1e8]
mov ecx, dword [ecx]
add ebx, ebx
add ebx, ebx
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x28], edi
mov edi, dword [esi + 8]
mov eax, dword [ebx + edi + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + edi + 0x18]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], eax
je 0x1005e530
test edx, edx
je 0x1005e53a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x1005e53a
cmp word [edi], 1
jg 0x1005e527
mov edx, dword [eax + 0x28]
mov ecx, dword [eax + 8]
test edx, edx
je 0x1005e54a
cmp dword [esi + 0x28], 0
jne 0x1005e527
cmp dword [eax + 0x2c], 0
jne 0x1005e527
cmp dword [esi + 0x24], 0
je 0x1005e560
test edx, edx
je 0x1005e560
cmp dword [eax + 0x18], 0
jne 0x1005e527
cmp word [ecx], 0
je 0x1005e527
test byte [eax + 6], 1
jne 0x1005e570
test edx, edx
je 0x1005e57c
cmp word [edi], 1
jg 0x1005e527
cmp dword [ebp + 0x10], 0
jne 0x1005e527
mov cx, word [esi + 6]
and cx, 1
mov word [esp + 0xe], cx
je 0x1005e591
cmp dword [ebp + 0x14], 0
jne 0x1005e527
cmp dword [esi + 0x18], 0
je 0x1005e59d
cmp dword [eax + 0x18], 0
jne 0x1005e527
cmp dword [ebp + 0x10], 0
je 0x1005e5ad
cmp dword [eax + 0x18], 0
jne 0x1005e527
test edx, edx
je 0x1005e5bb
cmp dword [esi + 0xc], 0
jne 0x1005e527
test byte [ebx + edi + 0x1d], 0x20
lea ecx, [ebx + edi + 0x1d]
mov dword [esp + 0x30], ecx
jne 0x1005e527
cmp dword [eax + 0x1c], 0
je 0x1005e65f
cmp dword [eax + 0x18], 0
jne 0x1005e527
cmp dword [ebp + 0x10], 0
jne 0x1005e527
cmp word [esp + 0xe], 0
jne 0x1005e527
cmp word [edi], 1
jne 0x1005e527
mov dl, 5
test byte [eax + 6], dl
jne 0x1005e527
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x1005e61e
cmp byte [eax + 4], 0x71
jne 0x1005e527
mov eax, dword [eax + 8]
test eax, eax
je 0x1005e527
cmp word [eax], 1
jne 0x1005e527
mov eax, ecx
test eax, eax
jne 0x1005e604
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1005e65f
cmp dword [ecx], eax
jle 0x1005e65f
mov ecx, dword [ecx + 0xc]
add ecx, 0xa
cmp word [ecx], 0
je 0x1005e527
mov edx, dword [esi + 0x18]
inc eax
add ecx, 0x10
cmp eax, dword [edx]
jl 0x1005e64a
mov ecx, dword [ebx + edi + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x15
mov dword [eax + 0x1e8], ecx
call fcn.10047230
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x1e8], edx
mov eax, dword [ecx + 0x1c]
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x1005e72a
lea esp, [esp]
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x28], eax
xor eax, eax
push eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push esi
push edx
mov dword [esp + 0x30], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 8], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], eax
call fcn.10040540
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esi + 0x28], ecx
mov dword [esi + 0x18], edx
mov dword [esi + 8], edi
mov byte [esi + 4], 0x71
mov dword [esi + 0x24], 0
test eax, eax
jne 0x1005e6f8
mov eax, dword [esp + 0x24]
jmp 0x1005e706
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], 0
mov edx, dword [esp + 0x10]
mov dword [esi + 0x1c], eax
cmp byte [edx + 0x1e], 0
jne 0x1005ea8a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1005e6a0
mov ecx, dword [ebx + edi + 8]
mov eax, dword [ebx + edi + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
call fcn.1001b3e0
mov eax, dword [ebx + edi + 0xc]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.1001b3e0
mov edx, dword [ebx + edi + 0x10]
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.1001b3e0
mov eax, dword [ebx + edi + 0x14]
xor ecx, ecx
mov dword [ebx + edi + 8], ecx
mov dword [ebx + edi + 0xc], ecx
mov dword [ebx + edi + 0x10], ecx
mov dword [ebx + edi + 0x18], ecx
lea edi, [ebx + edi + 0x14]
add esp, 0x18
cmp eax, ecx
je 0x1005e7ac
movzx ecx, word [eax + 0x20]
cmp ecx, 1
jne 0x1005e7a1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x204]
mov dword [eax + 0x4c], edx
mov dword [ecx + 0x204], eax
jmp 0x1005e7a6
dec ecx
mov word [eax + 0x20], cx
mov dword [edi], 0
mov ebx, esi
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 8]
mov eax, dword [ebx + 8]
movsx esi, word [edi]
mov byte [esp + 0xe], 0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1005e7d4
mov ecx, dword [esp + 0x30]
mov dl, byte [ecx]
mov byte [esp + 0xe], dl
jmp 0x1005e7f5
mov edx, dword [esp + 0x10]
push 0
xor ecx, ecx
xor eax, eax
call fcn.1004c070
add esp, 4
mov dword [ebx + 8], eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1005ea78
cmp esi, 1
jle 0x1005e825
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi - 1]
push edx
push ecx
call fcn.1004bf50
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebx + 8], eax
cmp byte [edx + 0x1e], 0
mov dword [esp + 0x1c], eax
jne 0x1005ea78
test esi, esi
jle 0x1005e875
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
add edi, 8
lea edx, [eax + ecx + 8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push 0x38
mov esi, eax
push 0
mov ecx, 0xe
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.100775d0
mov eax, 0x38
add dword [esp + 0x2c], eax
add dword [esp + 0x30], eax
add esp, 0xc
dec dword [esp + 0x28]
jne 0x1005e844
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0xe]
mov edi, dword [esp + 0x10]
mov byte [eax + ecx + 0x1d], dl
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
cmp dword [ecx], eax
jle 0x1005e909
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x1c]
cmp dword [eax + edx + 4], 0
jne 0x1005e8f7
mov eax, dword [eax + edx]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
test edx, edx
je 0x1005e8f7
mov edi, dword [eax + 0x10]
mov esi, dword [esp + 0x10]
shr edi, 2
lea ecx, [edi + 1]
call fcn.1001b5e0
mov esi, eax
test esi, esi
je 0x1005e8e4
mov eax, dword [esp + 0x20]
push edi
push eax
push esi
call fcn.100777a0
add esp, 0xc
mov byte [esi + edi], 0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dword [edx + eax + 4], esi
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], 0x10
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [ecx]
jl 0x1005e89d
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
push ecx
push edx
push eax
push edi
call fcn.1005e1a0
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x1005e94e
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x10]
push ecx
push edx
push eax
push edi
call fcn.1005e1a0
mov ecx, dword [esi]
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x14]
push ecx
push edx
push eax
push edi
call fcn.1005e010
add esp, 0x20
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1005e961
mov dword [ebx + 0x18], eax
mov dword [esi + 0x18], 0
jmp 0x1005e97a
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1005e97a
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
push edi
call fcn.1005e1a0
add esp, 0x10
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1005e995
push 0
push 0
push eax
push edi
call fcn.1003fd40
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x1005e99d
mov dword [esp + 0x14], 0
cmp dword [ebp + 0x14], 0
je 0x1005ea0a
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xc], ecx
mov edx, dword [esi]
mov ecx, dword [ebx + 0x14]
push edx
push eax
push ecx
push edi
call fcn.1005e010
mov eax, dword [esi + 0x14]
push 0
push 0
push eax
push edi
call fcn.1003fd40
mov ecx, dword [ebx + 0x14]
add esp, 0x20
test ecx, ecx
je 0x1005e9f3
test eax, eax
jne 0x1005e9e2
mov eax, ecx
jmp 0x1005e9f3
push 0
push eax
mov eax, ecx
push 0x43
mov ecx, edi
call fcn.1003f510
add esp, 0xc
mov dword [ebx + 0x14], eax
mov edx, dword [esi + 0x10]
push 0
push edx
push edi
call fcn.100400d0
add esp, 0xc
mov dword [ebx + 0x10], eax
jmp 0x1005ea49
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0xc]
push eax
push ecx
push edx
push edi
call fcn.1005e010
mov eax, dword [ebx + 0xc]
add esp, 0x10
test eax, eax
jne 0x1005ea2c
mov eax, dword [esp + 0x14]
jmp 0x1005ea46
cmp dword [esp + 0x14], 0
je 0x1005ea46
mov ecx, dword [esp + 0x14]
push 0
push ecx
push 0x43
mov ecx, edi
call fcn.1003f510
add esp, 0xc
mov dword [ebx + 0xc], eax
mov dx, word [esi + 6]
and dx, 1
or word [ebx + 6], dx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1005ea66
mov dword [ebx + 0x28], eax
mov dword [esi + 0x28], 0
mov ebx, dword [ebx + 0x1c]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x1005e7ae
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.100594f0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret