Function at 0x10005d7f
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x40
push dword [ebp + 0xc]
xor ebx, ebx
call fcn.10005fe1
pop ecx
test eax, eax
pop ecx
je 0x10005fa5
mov esi, dword [ebp + 8]
cmp word [esi], 0x5a4d
jne 0x10005fa5
mov eax, dword [esi + 0x3c]
add eax, 0xf8
push eax
push dword [ebp + 0xc]
call fcn.10005fe1
pop ecx
test eax, eax
pop ecx
je 0x10005fa5
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x10005fa5
cmp word [edi + 4], 0x14c
jne 0x10005fa5
mov edx, dword [edi + 0x38]
test dl, 1
jne 0x10005fa5
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 6]
test ecx, ecx
lea eax, [eax + edi + 0x18]
jbe 0x10005e20
add eax, 0xc
mov esi, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10005e12
mov ecx, dword [eax]
add ecx, edx
jmp 0x10005e14
add ecx, dword [eax]
cmp ecx, ebx
jbe 0x10005e1a
mov ebx, ecx
add eax, 0x28
dec esi
jne 0x10005e05
lea eax, [ebp - 0x28]
push eax
call fcn.10019145
push dword [ebp - 0x24]
push dword [edi + 0x50]
call fcn.10005fbf
push dword [ebp - 0x24]
mov dword [ebp - 4], eax
push ebx
call fcn.10005fbf
add esp, 0x14
cmp dword [ebp - 4], eax
jne 0x10005fa5
push dword [ebp + 0x24]
mov esi, 0x3000
push 4
push esi
push dword [ebp - 4]
push dword [edi + 0x34]
call dword [ebp + 0x10]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10005e83
push dword [ebp + 0x24]
push 4
push esi
push dword [ebp - 4]
push eax
call dword [ebp + 0x10]
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x10005fa5
push 0x40
push 8
call fcn.10019182
push eax
call fcn.100191c7
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10005eb0
push dword [ebp + 0x24]
push 0x8000
push eax
push ebx
call dword [ebp + 0x14]
add esp, 0x10
jmp 0x10005fa5
mov dword [esi + 4], ebx
mov ax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x3c], eax
push dword [edi + 0x54]
push dword [ebp + 0xc]
call fcn.10005fe1
pop ecx
test eax, eax
pop ecx
je 0x10005f9e
push dword [ebp + 0x24]
push 4
push 0x1000
push dword [edi + 0x54]
push ebx
call dword [ebp + 0x10]
push dword [edi + 0x54]
mov dword [ebp + 0x24], eax
push dword [ebp + 8]
push eax
call fcn.1004cdc0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
push esi
push edi
mov eax, dword [ecx + 0x3c]
push dword [ebp + 0xc]
add eax, edx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.10005fed
add esp, 0x30
test eax, eax
je 0x10005f9e
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x10005f5c
push eax
push esi
call fcn.100062fa
pop ecx
mov dword [esi + 0x18], eax
pop ecx
push 1
pop edi
jmp 0x10005f62
push 1
pop edi
mov dword [esi + 0x18], edi
push esi
call fcn.1000639e
test eax, eax
pop ecx
je 0x10005f9e
push esi
call fcn.100060c8
test eax, eax
pop ecx
je 0x10005f9e
push esi
call fcn.100062bf
test eax, eax
pop ecx
je 0x10005f9e
mov eax, dword [esi]
xor ecx, ecx
mov eax, dword [eax + 0x28]
cmp eax, ecx
je 0x10005fb5
cmp dword [esi + 0x14], ecx
je 0x10005fae
push ecx
push edi
add eax, ebx
push ebx
call eax
test eax, eax
jne 0x10005fa9
push esi
call fcn.100065da
pop ecx
xor eax, eax
jmp 0x10005fba
mov dword [esi + 0x10], edi
jmp 0x10005fb8
add eax, ebx
mov dword [esi + 0x38], eax
jmp 0x10005fb8
mov dword [esi + 0x38], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret