Function at 0x41d3e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x41d3f5
add esp, 0xfffffff0
call fcn.00403da8
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x5f0ac7
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00403b30
mov byte [ebx + 8], 0
mov esi, edi
mov dword [ebx + 4], esi
mov eax, esi
call fcn.0042dba8
cmp edx, 0
jne 0x41d433
cmp eax, 0x40
jb 0x41d6b9
jmp 0x41d439
jl 0x41d6b9
lea eax, [ebx + 0x10]
mov edx, 0x40
call fcn.00406ec8
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0x10]
mov eax, dword [ebx + 4]
call fcn.0042e18c
test al, al
je 0x41d6b9
cmp word [ebx + 0x10], 0x5a4d
jne 0x41d6b9
mov eax, dword [ebx + 0x4c]
test eax, eax
jle 0x41d6b9
cmp eax, 0x10000
jge 0x41d6b9
mov eax, dword [ebx + 4]
call fcn.0042dba8
push edx
push eax
mov eax, dword [ebx + 0x4c]
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esp + 4]
jne 0x41d4aa
cmp eax, dword [esp]
pop edx
pop eax
ja 0x41d6b9
jmp 0x41d4b2
pop edx
pop eax
jg 0x41d6b9
lea eax, [ebx + 0x50]
mov edx, 4
call fcn.00406ec8
mov eax, dword [ebx + 0x4c]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x50]
mov eax, dword [ebx + 4]
call fcn.0042e18c
cmp dword [ebx + 0x50], 0x4550
jne 0x41d6b9
lea eax, [ebx + 0x54]
mov edx, 0x14
call fcn.00406ec8
mov eax, dword [ebx + 0x4c]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x54]
mov eax, dword [ebx + 4]
call fcn.0042e18c
mov ax, word [ebx + 0x54]
cmp ax, 0x8664
jne 0x41d57a
mov eax, dword [ebx + 4]
call fcn.0042dba8
push edx
push eax
mov eax, dword [ebx + 0x4c]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esp + 4]
jne 0x41d53c
cmp eax, dword [esp]
pop edx
pop eax
ja 0x41d5da
jmp 0x41d544
pop edx
pop eax
jg 0x41d5da
lea eax, [ebx + 0x148]
mov edx, 0xf0
call fcn.00406ec8
mov eax, dword [ebx + 0x4c]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x148]
mov eax, dword [ebx + 4]
call fcn.0042e18c
mov byte [ebx + 8], al
jmp 0x41d5da
cmp ax, 0x14c
jne 0x41d5da
mov eax, dword [ebx + 4]
call fcn.0042dba8
push edx
push eax
mov eax, dword [ebx + 0x4c]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esp + 4]
jne 0x41d5a8
cmp eax, dword [esp]
pop edx
pop eax
ja 0x41d5da
jmp 0x41d5ac
pop edx
pop eax
jg 0x41d5da
lea eax, [ebx + 0x68]
mov edx, 0xe0
call fcn.00406ec8
mov eax, dword [ebx + 0x4c]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x68]
mov eax, dword [ebx + 4]
call fcn.0042e18c
mov byte [ebx + 8], al
cmp byte [ebx + 8], 0
je 0x41d6b9
mov eax, dword [ebx + 4]
call fcn.0042dba8
push edx
push eax
mov eax, dword [ebx + 0x4c]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x64]
add eax, edx
mov si, word [ebx + 0x56]
movzx edx, si
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esp + 4]
jne 0x41d620
cmp eax, dword [esp]
pop edx
pop eax
ja 0x41d6b9
jmp 0x41d628
pop edx
pop eax
jg 0x41d6b9
movzx eax, si
push eax
lea eax, [ebx + 0xc]
mov ecx, 1
mov edx, dword [0x5f04ec]
call fcn.00405b74
add esp, 4
mov eax, dword [ebx + 0x4c]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x64]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x56]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
call fcn.0042e18c
mov eax, dword [ebx + 0xc]
call fcn.004059b8
dec eax
test eax, eax
jl 0x41d6b9
inc eax
mov dword [ebp - 8], eax
xor esi, esi
lea edi, [esi + esi*4]
mov eax, dword [ebx + 0xc]
cmp dword [eax + edi*8 + 8], 0
jne 0x41d6b3
mov eax, dword [ebx + 0xc]
cmp dword [eax + edi*8 + 0x10], 0
jbe 0x41d6b3
mov eax, ebx
call fcn.0041d360
mov edx, eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + edi*8 + 0x10]
call fcn.0041d290
mov edx, dword [ebx + 0xc]
mov dword [edx + edi*8 + 8], eax
inc esi
dec dword [ebp - 8]
jne 0x41d680
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f0ace
ret