Function at 0x1003cfb0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 6]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 2]
test edx, edx
je 0x1003d06f
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0x18]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0x80
jae 0x1003d02b
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov dl, byte [ebp - 0x20]
mov byte [ecx], dl
mov dword [ebp - 0x44], 1
jmp 0x1003d043
mov eax, dword [ebp - 0x20]
cdq
push edx
push eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
push eax
call fcn.10038cf0
add esp, 0xc
mov dword [ebp - 0x44], eax
movzx ecx, byte [ebp - 0x44]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
push edx
call fcn.10038cf0
add esp, 0xc
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jmp 0x1003d0c5
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x20], 0x80
jae 0x1003d0a3
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov al, byte [ebp - 0x20]
mov byte [edx], al
mov dword [ebp - 0x48], 1
jmp 0x1003d0bb
mov eax, dword [ebp - 0x20]
cdq
push edx
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
call fcn.10038cf0
add esp, 0xc
mov dword [ebp - 0x48], eax
movzx edx, byte [ebp - 0x48]
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xa]
cmp dword [ebp - 0x20], ecx
jg 0x1003d0fd
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 4
jge 0x1003d0e7
mov dword [ebp - 0x18], 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
jmp 0x1003d156
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0xc]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov ecx, dword [edx + 0x24]
sub ecx, 4
xor edx, edx
div ecx
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0xa]
cmp dword [ebp - 0x18], eax
jle 0x1003d135
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x18]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x20], 0
jle 0x1003d310
cmp dword [ebp - 0x24], 0
jne 0x1003d28e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x11]
test edx, edx
je 0x1003d1b7
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10025fe0
add esp, 8
cmp eax, dword [ebp - 0x28]
je 0x1003d184
mov ecx, dword [ebp - 8]
mov eax, dword [0x100b8158]
xor edx, edx
div dword [ecx + 0x20]
add eax, 1
cmp dword [ebp - 0x28], eax
je 0x1003d184
push 0
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10027a70
add esp, 0x14
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x11]
test ecx, ecx
je 0x1003d223
cmp dword [ebp - 0xc], 0
jne 0x1003d223
xor edx, edx
cmp dword [ebp - 0x3c], 0
setne dl
add edx, 3
mov byte [ebp - 0x3d], dl
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
movzx edx, byte [ebp - 0x3d]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10026870
add esp, 0x14
cmp dword [ebp - 0xc], 0
je 0x1003d223
mov edx, dword [ebp - 0x14]
push edx
call fcn.10025a10
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x1003d23d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10025a10
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x1003d31e
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.1001dca0
add esp, 8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10025a10
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x34], eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.1001dca0
add esp, 8
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x38]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
sub edx, 4
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x24]
jle 0x1003d2a2
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], 0
jle 0x1003d2cc
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jle 0x1003d2b6
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10096340
add esp, 0xc
jmp 0x1003d2de
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.10096800
add esp, 0xc
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
jmp 0x1003d15f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10025a10
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret