Function at 0x4014c0
Capabilities:
Execute anti-debugging instructions
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x128
mov word [esp + 0x122], 0x180d
mov dword [esp + 0x11c], 0
mov dword [esp + 0x118], 0x43c373a
mov dword [esp + 0x114], 0x5b6ee326
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0x3e4a9691
mov eax, dword [esp + 0x114]
mov ecx, 0x74091b7b
sub ecx, eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
add ecx, 0x56f57529
adc eax, 0
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
sub ecx, esi
sbb eax, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jae 0x401582
jmp 0x401882
lea eax, [0x405ab0]
mov ecx, 0x29a
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x108]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xb4], 0x45800
mov dword [esp + 0x7c], eax
jmp 0x401858
lea ecx, [esp + 0xf0]
lea edx, [esp + 0x84]
mov dword [esp + 0x48], 0x7b395d59
mov esi, dword [esp + 0x114]
add esi, 0xa4911cda
mov dword [esp + 0xe8], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], esi
jmp 0x401616
mov eax, 0x5b6ee322
mov ecx, dword [esp + 0x114]
add ecx, 0xa4911cdd
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x5c]
cmp dword [esp + 0x5c], ecx
sete bl
sub eax, dword [esp + 0x114]
cmp edx, 0x53
sete bh
or bh, bl
cmp dword [esp + 0x5c], 0
sete bl
or bl, bh
cmp dword [esp + 0x44], esi
sete bh
and bh, bl
mov dword [esp + 0x80], eax
test bh, 1
jne 0x401873
jmp 0x401716
mov eax, 0x5b6ee326
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x34]
sub eax, dword [esp + 0x114]
mov dword [esp + 0xe4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], eax
rdtsc
mov ecx, edx
mov esi, eax
rdtsc
mov edi, edx
mov ebx, eax
mov eax, dword [esp + 0x114]
add eax, 0xbd7fe760
sub ebx, esi
mov dword [esp + 0x60], ebx
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x68], edx
sete dl
mov esi, dword [esp + 0x38]
and dl, 1
mov byte [esp + 0x3d], dl
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edi
jbe 0x4018b6
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x40]
mov bl, byte [esp + 0x3d]
test byte [esp + 0x3d], 1
cmovne esi, ecx
test bl, 1
cmove eax, dword [esp + 0xe4]
cmp esi, edx
cmova esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x114]
add ecx, 0xa4911d3e
mov dword [esp + 0x5c], esi
mov edx, dword [esp + 0x60]
cmp eax, edx
cmovb eax, dword [esp + 0x60]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
add eax, 1
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x34], edx
mov dword [esp + 0x70], eax
cmp eax, ecx
je 0x4015be
jmp 0x401616
mov eax, dword [esp + 0x78]
mov cl, byte [eax]
mov eax, dword [esp + 0xec]
mov dword [esp + 0x74], eax
cmp cl, 0x50
je 0x40176e
jmp 0x4018e3
lea eax, [esp + 0xf0]
mov dword [esp], eax
call fcn.00402cb0
cmp dword [esp + 0x48], 0xeed093d
mov dword [esp + 0x1c], eax
jbe 0x4018e3
jmp 0x40154e
lea eax, [esp + 0x84]
mov ecx, dword [esp + 0x114]
xor ecx, 0x5b6ee327
mov dword [esp], eax
mov dword [esp + 0x18], ecx
call dword [esp + 0x4c]
sub esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x80], eax
jmp 0x401873
lea eax, [esp + 0x84]
xor ecx, ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0xd8], edx
mov esi, dword [edx + 0x3c]
mov edi, edx
add edi, esi
mov ebx, dword [esp + 0x114]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x114]
add eax, 0xa4921cd9
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
xor eax, 0x5b6e0c96
mov edx, dword [edx + esi]
mov esi, edx
add esi, eax
add edx, 0xffffefaf
mov eax, dword [esp + 0xc]
cmp edx, eax
setb al
and esi, 0xffff
cmp esi, 0x3500
sete ah
and al, ah
test al, 1
cmovne ecx, edi
mov ecx, dword [ecx + 0x50]
xor ebx, 0x5b6ee326
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 8], ebx
call fcn.00401010
lea ecx, [esp + 0x84]
lea edx, [esp + 0xf0]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00404bb0
lea ecx, [esp + 0x84]
mov edx, 1
mov esi, dword [0x452940]
mov dword [esp + 0x4c], esi
cmp dword [esp + 0x4c], 0
sete al
cmp ecx, edx
sete ah
or ah, al
mov ecx, dword [esp + 8]
mov dword [esp + 0x80], ecx
test ah, 1
jne 0x401873
jmp 0x40173c
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0xec]
cmp word [eax], 0x5a4d
je 0x401882
jmp 0x4018e3
mov eax, dword [esp + 0x80]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xec]
add ecx, dword [eax + 0x3c]
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x78]
cmp byte [eax + 1], 0x45
jne 0x4018e3
mov eax, dword [esp + 0x78]
mov dword [esp + 0x74], 0
cmp eax, 0
je 0x40176e
mov ax, 0xfe00
mov cx, 0xd9f0
sub cx, word [esp + 0x122]
mov word [esp + 0x3e], cx
sub ax, word [esp + 0x122]
cmp ax, word [esp + 0x3e]
jbe 0x4015be
jmp 0x4016fb
mov eax, dword [esp + 0x114]
xor eax, 0xa4911326
mov ecx, dword [esp + 0xec]
add ecx, 0xfffff000
and ecx, eax
mov dword [esp + 0x7c], ecx
jmp 0x401858