Function at 0x1005e350
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebx, eax
mov edx, dword [ebx]
push esi
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x1c], eax
add eax, 1
mov dword [esp + 0x28], eax
add eax, 1
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x18]
test eax, eax
push edi
mov ebp, 0xfff0bdc0
je 0x1005e3a3
mov edi, dword [edx + 0x14]
xor ebp, ebp
test edi, edi
jle 0x1005e3a3
mov ecx, dword [edx + 0x10]
add ecx, 0xc
cmp dword [ecx], eax
je 0x1005e3a3
add ebp, 1
add ecx, 0x10
cmp ebp, edi
jl 0x1005e395
mov edx, dword [edx + 0x10]
mov ecx, ebp
shl ecx, 4
mov eax, dword [ecx + edx]
mov ecx, dword [esi]
push eax
push 0
push ecx
push 0x1b
mov eax, ebx
call fcn.10039af0
add esp, 0x10
test eax, eax
jne 0x1005e6d9
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov eax, dword [eax + 0x20]
push edx
push 1
push eax
push ebp
mov eax, ebx
call fcn.1002f210
mov edi, dword [ebx + 8]
add esp, 0x10
test edi, edi
jne 0x1005e425
call fcn.1002a070
mov edi, eax
test edi, edi
mov dword [ebx + 8], eax
je 0x1005e408
push 0x9b
mov esi, edi
call fcn.10035f60
mov esi, dword [esp + 0x3c]
add esp, 4
cmp dword [ebx + 0x198], 0
jne 0x1005e41d
mov ecx, dword [ebx]
test byte [ecx + 0x3c], 8
jne 0x1005e41d
mov byte [ebx + 0x17], 1
test edi, edi
je 0x1005e6d9
mov eax, dword [esp + 0x3c]
test eax, eax
jl 0x1005e433
mov dword [esp + 0x24], eax
jmp 0x1005e43a
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x24], edx
push esi
push ebx
call fcn.1004e110
mov ecx, dword [ebx + 0x44]
add esp, 8
test eax, eax
lea edx, [ecx + 1]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x44], edx
je 0x1005e45c
add dword [eax], 1
push 0xfffffffffffffffa
push eax
push 0
push 0
push ecx
push 0x38
mov esi, edi
call fcn.10035e40
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push 0x34
push ebp
push esi
mov ecx, ebx
call fcn.1004fc30
add esp, 0x24
push 0
push esi
push 0x69
mov esi, edi
call fcn.10035eb0
mov dword [esp + 0x28], eax
mov al, byte [ebx + 0x13]
add esp, 0xc
test al, al
jne 0x1005e4aa
add dword [ebx + 0x48], 1
mov esi, dword [ebx + 0x48]
mov dword [esp + 0x18], esi
jmp 0x1005e4bc
sub al, 1
mov byte [ebx + 0x13], al
movzx eax, al
mov ecx, dword [ebx + eax*4 + 0x18]
mov dword [esp + 0x18], ecx
mov esi, ecx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
push 0
push 0
push 0
push esi
push edx
push eax
push ebx
lea eax, [esp + 0x4c]
call fcn.10057aa0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push esi
push ecx
push 0x6a
mov esi, edi
call fcn.10035eb0
mov edx, dword [esp + 0x3c]
add esp, 0xc
test edx, edx
je 0x1005e526
mov ecx, dword [ebx + 8]
mov esi, dword [ecx + 0x18]
or eax, 0xffffffff
sub eax, edx
mov dword [esp + 0x30], esi
js 0x1005e516
mov edx, dword [esi + 0x70]
test edx, edx
je 0x1005e516
mov esi, dword [ecx + 0x20]
mov dword [edx + eax*4], esi
mov esi, dword [esp + 0x30]
mov edx, dword [ecx + 0x20]
sub edx, 1
mov eax, ebx
mov dword [esi + 0x58], edx
call fcn.1001a960
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add eax, 1
push eax
push ecx
push 9
mov esi, edi
call fcn.10035eb0
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp eax, ecx
jbe 0x1005e554
lea edx, [ecx + ecx*4]
mov ecx, dword [edi + 4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
sub edx, 1
cmp dword [esp + 0x3c], 0
mov dword [eax + 0x58], edx
jge 0x1005e579
mov ecx, dword [esp + 0x24]
push ebp
push ecx
push 0x73
mov esi, edi
call fcn.10035eb0
add esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push 0xfffffffffffffffa
push edx
push ebp
push eax
push ecx
push 0x35
mov esi, edi
call fcn.10035e40
mov eax, dword [edi + 4]
add esp, 0x18
test eax, eax
je 0x1005e5b9
cmp dword [esp + 0x3c], 0
mov esi, dword [edi + 0x20]
setl dl
sub dl, 1
lea ecx, [esi + esi*4]
and edx, 2
or dl, 1
mov byte [eax + ecx*4 - 0x11], dl
mov edx, dword [esp + 0x14]
push 0
push edx
push 0x67
mov esi, edi
call fcn.10035eb0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp byte [eax + 0x36], 0
je 0x1005e633
cmp dword [esp + 0x28], 0
je 0x1005e633
mov ebp, dword [edi + 0x20]
add ebp, 3
push ebp
push 0
push 0x10
call fcn.10035eb0
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x34]
movzx eax, word [edx + 6]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
movzx ecx, word [esi + 0x32]
add esp, 0xc
sub eax, ecx
push eax
mov eax, dword [esp + 0x18]
push edx
push ebp
push eax
push 0x54
mov eax, edi
call fcn.10035ca0
add esp, 0x14
push esi
push 2
push ebx
call fcn.1005dfd0
add esp, 0xc
jmp 0x1005e63a
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x24], ecx
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebp
push edx
push 0x5f
mov esi, edi
call fcn.10035eb0
mov eax, dword [esp + 0x38]
add esp, 0xc
push 1
push ebp
push eax
push 0x6b
call fcn.10030400
mov eax, dword [edi + 4]
add esp, 0x10
test eax, eax
je 0x1005e674
mov ecx, dword [edi + 0x20]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x10
mov esi, ebp
mov edx, ebx
call fcn.10012860
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
push edx
push ebx
push 5
mov esi, edi
call fcn.10035eb0
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp eax, ecx
jbe 0x1005e6a8
mov edx, dword [edi + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [edi + 0x20]
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 0x18]
push edx
sub eax, 1
push 0x3a
mov esi, edi
mov dword [ecx + 0x58], eax
call fcn.10035f10
mov eax, dword [esp + 0x34]
push eax
push 0x3a
call fcn.10035f10
push ebx
push 0x3a
call fcn.10035f10
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret