Function at 0x401000
Capabilities:
Parse pe header

Disassembly:
push 0xfffffffffffffff5
call fcn.0040153d
cmp eax, 0xffffffff
je 0x40145e
mov dword [0x4025c8], eax
push 0xfffffffffffffff6
call fcn.0040153d
cmp eax, 0xffffffff
je 0x40145e
mov dword [0x4025cc], eax
push 0x137
push 0x40208e
call 0x401465
call fcn.00401531
mov edi, eax
push edi
call fcn.00401567
mov ecx, eax
mov al, 0x20
repne scasb al, byte es:[edi]
jne 0x401366
cmp byte [edi], 0
je 0x401366
push edi
repne scasb al, byte es:[edi]
jne 0x401366
mov byte [edi - 1], 0
push edi
repne scasb al, byte es:[edi]
jne 0x4010d2
mov byte [edi - 1], 0
cmp word [edi], 0x622d
je 0x40107f
cmp word [edi], 0x422d
jne 0x4010d2
inc byte [0x402052]
mov esi, 0x402053
mov edi, dword [esp + 4]
push edi
push esi
call fcn.00401561
push esi
call fcn.00401567
mov ecx, eax
cmp byte [esi + eax], 0x2e
jne 0x4010c1
mov dword [esi + eax + 1], 0x6b6162
push 0
push esi
push dword [esp + 0xc]
call fcn.00401513
test eax, eax
je 0x40137a
jmp 0x4010d2
dec eax
jne 0x40109d
mov byte [esi + ecx], 0x2e
inc ecx
mov dword [esi + ecx], 0x6b6162
jmp 0x4010ab
pop edi
mov eax, section.DATA
push edi
push eax
call fcn.00401561
pop edi
mov eax, 0x402020
push edi
push eax
call fcn.00401561
push 0
push 0x402085
push 0x402020
call fcn.00401513
cmp eax, 0xffffffff
je 0x40138b
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edi
call fcn.00401519
cmp eax, 0xffffffff
je 0x40138b
mov dword [0x4025d0], eax
push 0x8b
push 0x40236f
call 0x401465
push 0
push 0x40201c
push 0x14
push 0x402008
push dword [0x4025cc]
call fcn.00401549
push 0x402008
call fcn.00401485
mov dword [0x4025e8], eax
push 0
push dword [0x4025d0]
call fcn.00401537
add eax, dword [0x4025e8]
add eax, 0x2710
push 0
push eax
push 0
push 4
push 0
push dword [0x4025d0]
call fcn.0040151f
test eax, eax
je 0x40139c
mov dword [0x4025d4], eax
push 0
push 0
push 0
push 2
push eax
call fcn.00401543
test eax, eax
je 0x40139c
mov dword [0x4025d8], eax
cmp word [eax], 0x5a4d
jne 0x4013ad
movzx edi, word [eax + 0x3c]
add edi, dword [0x4025d8]
cmp dword [edi], 0x4550
jne 0x4013ad
add edi, 4
mov dword [0x4025dc], edi
movzx ecx, word [edi + 2]
add di, word [edi + 0x10]
add edi, 0x14
add edi, 0x28
loop 0x4011ec
mov ecx, 0xa
mov edx, 0x28
cmp dword [edi + edx], 0
jne 0x4013bb
add edx, 4
loop 0x4011fb
mov esi, dword [0x4025dc]
inc word [esi + 2]
add esi, 0x14
mov ecx, 1
cmp dword [esi + 0x20], 0
jne 0x40122a
cmp dword [esi + 0x24], 0
jne 0x40122a
xor ecx, ecx
sub edi, 0x28
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
jecxz 0x40123e
push dword [esi + 0x20]
push eax
call fcn.004014f4
mov dword [0x4025e0], eax
mov eax, dword [edi + 0x14]
add eax, dword [edi + 0x10]
jecxz 0x401254
push dword [esi + 0x24]
push eax
call fcn.004014f4
mov dword [0x4025e4], eax
mov eax, dword [0x4025e8]
jecxz 0x401277
push dword [esi + 0x24]
push eax
call fcn.004014f4
mov dword [0x4025e8], eax
push dword [esi + 0x20]
push eax
call fcn.004014f4
add dword [esi + 0x38], eax
add edi, 0x28
push edi
mov esi, section.DATA
mov ecx, 8
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [0x4025e8]
mov dword [edi + 8], eax
mov eax, dword [0x4025e0]
mov dword [edi + 0xc], eax
mov eax, dword [0x4025e8]
mov dword [edi + 0x10], eax
mov eax, dword [0x4025e4]
mov dword [edi + 0x14], eax
mov dword [edi + 0x24], 0xc0000000
mov edi, dword [0x4025d8]
add edi, dword [0x4025e4]
mov ecx, dword [0x4025e8]
xor al, al
rep stosb byte es:[edi], al
sub edi, dword [0x4025d8]
mov esi, 0x402085
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call fcn.00401519
test eax, eax
je 0x4013c9
push eax
push 0
push 0x40201c
push edi
push dword [0x4025d8]
push eax
call fcn.0040155b
test eax, eax
je 0x4013c9
pop eax
push eax
call fcn.0040156d
push dword [0x4025d8]
call fcn.0040154f
push dword [0x4025d4]
call fcn.0040156d
push dword [0x4025d0]
call fcn.0040156d
push 0
push 0x402020
push 0x402085
call fcn.00401513
cmp eax, 0
jne 0x40135a
push 0x402085
call fcn.00401525
jmp 0x4013c9
push 0x402085
call fcn.00401525
jmp 0x4013d7
push 0x127
push 0x4021c5
call 0x401465
jmp 0x40145e
push 0x59
push 0x4022ec
call 0x401465
jmp 0x40145e
push 0x2a
push 0x402345
call 0x401465
jmp 0x40145e
push 0x6c
push 0x402466
call 0x401465
jmp 0x40145e
push 0x42
push 0x4024d2
call 0x401465
jmp 0x401422
push 0x6c
push 0x4023fa
call 0x401465
jmp 0x401422
push 0x4a
push 0x402514
call 0x401465
jmp 0x401422
push 0x50
push 0x40255e
call 0x401465
cmp byte [0x402052], 1
jne 0x401420
push 0x18
push 0x4025ae
call 0x401465
mov edi, 0x402053
mov esi, 0x402020
push edi
push esi
call fcn.00401561
push esi
call fcn.00401567
mov dword [esi + eax], 0xa0d
add eax, 2
push eax
push esi
call 0x401465
jmp 0x40145e
push dword [0x4025d8]
call fcn.0040154f
push dword [0x4025d4]
call fcn.0040156d
push dword [0x4025d0]
call fcn.0040156d
push 0
push 0x402020
push 0x402085
call fcn.00401513
push 0x402085
call fcn.00401525
push 0
call fcn.0040152b
enter 0, 0
push 0
push 0x40201c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x4025c8]
call fcn.00401555
leave
ret 8