Function at 0x40a2f3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 4], 0
push 0x2c
call fcn.00415552
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0
je 0x40a35b
cmp dword [ebp + 8], 0
je 0x40a35b
xor eax, eax
jmp 0x40a360
mov eax, 1
test eax, eax
je 0x40a372
mov eax, 0
jmp 0x40a93a
push dword [ebp + 0xc]
call fcn.0040a94e
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
je 0x40a393
mov eax, 0
jmp 0x40a93a
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x4ab7f1]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.0040455a
push eax
call fcn.0040a94e
cwde
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a419
fild dword [ebp + 0xc]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 4]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x38]
mov dword [ebp - 0x3c], esp
push 2
fld qword [ebp - 0x38]
call fcn.0040455a
push eax
mov eax, 0x2d
call fcn.0041555e
cmp dword [ebp - 0x3c], esp
je 0x40a40d
push 0x196
push 0x40202a3
push 6
call fcn.00415558
add esp, 0xc
test eax, eax
jne 0x40a419
xor eax, eax
jmp 0x40a41e
mov eax, 1
test eax, eax
je 0x40a430
mov eax, 0
jmp 0x40a93a
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 4]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.0040455a
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0040a94e
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x4550
je 0x40a471
mov eax, 0
jmp 0x40a93a
fild dword [ebp - 4]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x4ab7f9]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.0040455a
push eax
call fcn.0040a96a
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a4f6
fild dword [ebp + 0xc]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 4]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x38]
mov dword [ebp - 0x3c], esp
push 0x28
fld qword [ebp - 0x38]
call fcn.0040455a
push eax
mov eax, 0x2d
call fcn.0041555e
cmp dword [ebp - 0x3c], esp
je 0x40a4ea
push 0x335
push 0x40202a3
push 6
call fcn.00415558
add esp, 0xc
test eax, eax
jne 0x40a4f6
xor eax, eax
jmp 0x40a4fb
mov eax, 1
test eax, eax
je 0x40a50d
mov eax, 0
jmp 0x40a93a
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 4]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
mov dword [ebp - 0x38], esp
push 0x28
fld qword [ebp - 0x34]
call fcn.0040455a
push eax
mov eax, dword [ebp - 8]
push eax
push 0x28
call fcn.00415552
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, 0x2e
call fcn.0041555e
cmp dword [ebp - 0x38], esp
je 0x40a5e4
push 0x395
push 0x40202a3
push 6
call fcn.00415558
add esp, 0xc
mov ebx, dword [ebp - 0x3c]
push ebx
mov edi, dword [ebp - 0x40]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0041554c
add esp, 4
mov ebx, dword [ebp - 8]
add ebx, 0x1c
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
cmp dword [ebx], 0
je 0x40a6a6
mov ebx, dword [ebp - 8]
add ebx, 0x20
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
cmp dword [ebx], 0
je 0x40a6a6
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
cmp dword [ebx], 0
je 0x40a6a6
xor eax, eax
jmp 0x40a6ab
mov eax, 1
test eax, eax
je 0x40a6bd
mov eax, 0
jmp 0x40a93a
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 8]
add ebx, 0x14
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x4ab573]
fstp qword [ebp - 0x30]
mov ebx, dword [ebp - 8]
add ebx, 0x1c
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
fild dword [ebx]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fsub qword [0x4ab573]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.0040455a
push eax
fld qword [ebp - 0x30]
call fcn.0040455a
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop ecx
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x40a85e
mov ebx, dword [ebp - 8]
add ebx, 0x28
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
cmp dword [ebx], 0
je 0x40a772
mov ebx, dword [ebp - 8]
add ebx, 0x28
mov dword [ebp - 0x20], ebx
fild dword [ebp + 0xc]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.0040455a
push eax
call fcn.0040a94e
cwde
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 8]
add ebx, 0x20
mov dword [ebp - 0x20], ebx
fild dword [ebp - 0x14]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fmul qword [0x4ab801]
fstp qword [ebp - 0x30]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x40]
fadd qword [ebp - 0x40]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.0040455a
push eax
call fcn.0040a96a
mov dword [ebp - 0x4c], eax
fild dword [ebp + 0xc]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x4c]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
call fcn.0040455a
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 8], eax
jl 0x40a837
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], eax
jle 0x40a837
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x20], ebx
fild dword [ebp + 0xc]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.0040455a
push eax
call fcn.0040a96a
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40a837
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
add dword [ebx], 4
mov ebx, dword [ebp - 8]
add ebx, 0x28
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
add dword [ebx], 2
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x40a71e
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x40a87c
cmp dword [ebp - 0x10], 0
je 0x40a87c
mov eax, 1
jmp 0x40a881
mov eax, 0
test eax, eax
je 0x40a930
fild dword [ebp + 8]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x4ab809]
fcomp qword [0x4ab5a3]
fnstsw ax
test ah, 1
je 0x40a930
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.0040455a
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x4171c0
call fcn.00415564
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a908
push ebx
call fcn.0041554c
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.0040455a
jmp 0x40a93a
mov eax, 0
jmp 0x40a93a
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.0041554c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc