Function at 0x31e4280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x31e4288
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.031a40a8
xor eax, eax
push ebp
push 0x31e45e1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [esi], eax
xor ebx, ebx
call fcn.031e6b20
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x31e4545
mov edx, dword [edx + 0x3c]
mov ecx, eax
add edx, ecx
cmp dword [edx], 0x4550
jne 0x31e4545
mov ebx, dword [edx + 0x50]
add ebx, ecx
add ebx, 4
mov edi, dword [edx + 0x50]
add edi, eax
mov edx, dword [edi]
lea eax, [ebp - 0xc]
call fcn.031a3acc
lea eax, [ebp - 0xc]
call fcn.031a3968
mov ecx, dword [edi]
mov edx, ebx
call fcn.031a6a00
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
push eax
push esi
push 0
push 1
lea ecx, [ebp - 0x18]
mov edx, 0x31e4600
mov eax, 0x31e460c
call fcn.031e681c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.031a3cc8
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
call fcn.031a3968
mov ecx, eax
mov edx, dword [ebp - 4]
pop eax
call fcn.031dc518
mov ebx, eax
test ebx, ebx
jne 0x31e43a1
mov eax, dword [edi]
push eax
push esi
push 0
push 1
lea eax, [ebp - 0x1c]
call fcn.031e7244
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
mov edx, 0x31e4624
mov eax, 0x31e4630
call fcn.031e681c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.031a3cc8
mov edx, dword [ebp - 0x20]
pop eax
call fcn.031a3cf4
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
call fcn.031a3968
mov ecx, eax
mov edx, dword [ebp - 4]
pop eax
call fcn.031dc518
mov ebx, eax
test ebx, ebx
jne 0x31e4448
push 0xea60
call fcn.031a685c
mov eax, dword [edi]
push eax
push esi
push 0
push 1
lea ecx, [ebp - 0x2c]
mov edx, 0x31e4650
mov eax, 0x31e465c
call fcn.031e681c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.031a3cc8
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
call fcn.031a3968
mov ecx, eax
mov edx, dword [ebp - 4]
pop eax
call fcn.031dc518
mov ebx, eax
test ebx, ebx
jne 0x31e4448
mov eax, dword [edi]
push eax
push esi
push 0
push 1
lea eax, [ebp - 0x30]
call fcn.031e7244
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x38]
mov edx, 0x31e4674
mov eax, 0x31e4680
call fcn.031e681c
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.031a3cc8
mov edx, dword [ebp - 0x34]
pop eax
call fcn.031a3cf4
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
call fcn.031a3968
mov ecx, eax
mov edx, dword [ebp - 4]
pop eax
call fcn.031dc518
mov ebx, eax
test ebx, ebx
jne 0x31e44ef
push 0xea60
call fcn.031a685c
mov eax, dword [edi]
push eax
push esi
push 0
push 1
lea ecx, [ebp - 0x40]
mov edx, 0x31e46a0
mov eax, 0x31e46ac
call fcn.031e681c
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.031a3cc8
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
call fcn.031a3968
mov ecx, eax
mov edx, dword [ebp - 4]
pop eax
call fcn.031dc518
mov ebx, eax
test ebx, ebx
jne 0x31e44ef
mov eax, dword [edi]
push eax
push esi
push 0
push 1
lea eax, [ebp - 0x44]
call fcn.031e7244
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
mov edx, 0x31e46a0
mov eax, 0x31e46ac
call fcn.031e681c
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
call fcn.031a3cc8
mov edx, dword [ebp - 0x48]
pop eax
call fcn.031a3cf4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0xc]
call fcn.031a3968
mov ecx, eax
mov edx, dword [ebp - 4]
pop eax
call fcn.031dc518
mov ebx, eax
test ebx, ebx
jne 0x31e4524
push 0xea60
call fcn.031a685c
mov eax, dword [edi]
push eax
push esi
push 0
push 1
lea eax, [ebp - 0xc]
call fcn.031a3968
push eax
lea eax, [ebp - 0x50]
call fcn.031e5c80
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 4]
pop ecx
call fcn.031dc518
mov ebx, eax
test ebx, ebx
jne 0x31e4545
cmp dword [ebp - 0x10], 5
je 0x31e4545
push 0xea60
call fcn.031a685c
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 6
jne 0x31e430c
test ebx, ebx
je 0x31e454c
mov dword [ebp - 8], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31e45eb
lea eax, [ebp - 0x50]
call fcn.031a3b48
lea eax, [ebp - 0x4c]
call fcn.031a3578
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.031a3b60
lea eax, [ebp - 0x40]
call fcn.031a3578
lea eax, [ebp - 0x3c]
call fcn.031a3b48
lea eax, [ebp - 0x38]
call fcn.031a3578
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.031a3b60
lea eax, [ebp - 0x2c]
call fcn.031a3578
lea eax, [ebp - 0x28]
call fcn.031a3b48
lea eax, [ebp - 0x24]
call fcn.031a3578
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.031a3b60
lea eax, [ebp - 0x18]
call fcn.031a3578
lea eax, [ebp - 0x14]
call fcn.031a3b48
lea eax, [ebp - 0xc]
call fcn.031a3578
lea eax, [ebp - 4]
call fcn.031a3b48
ret