Function at 0x40a400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
push edi
mov word [ebp - 0x18], ax
xor esi, esi
xor eax, eax
mov dword [ebp - 8], esi
push 0x64
mov word [ebp - 0x16], ax
call fcn.004069c4
mov ecx, dword [ebp + 0x10]
call fcn.00404d00
mov ebx, dword [ebp + 0xc]
cmp word [ebx], si
je 0x40a64b
lea esp, [esp]
movzx eax, word [ebx + esi*2]
cmp eax, 0x20
je 0x40a549
cmp eax, 9
je 0x40a549
movzx eax, word [ebx + esi*2]
mov dword [ebp - 8], esi
test ax, ax
je 0x40a64b
mov edi, eax
mov word [ebp - 0x16], si
mov dword [ebp - 0x10], eax
cmp edi, 0x30
jae 0x40a4e1
cmp edi, 0x2e
je 0x40a4e6
cmp edi, 0x41
jae 0x40a54f
cmp edi, 0x61
jae 0x40a68a
cmp edi, 0x5f
je 0x40a693
mov eax, edi
cmp eax, 0x24
je case.0x40a4bb.64
cmp eax, 0x3d
je 0x40a6c3
sub eax, 0x1a
cmp eax, 0x44
ja case.0x40a4bb.27
movzx eax, byte [eax + 0x40a9f4]
jmp dword [eax*4 + 0x40a9a8]
push 0x4f
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
inc esi
mov dword [ebp - 8], esi
jmp 0x40a640
cmp edi, 0x39
ja 0x40a474
mov eax, dword [ebp + 0x10]
mov esi, 0x40
mov ecx, dword [eax + 8]
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x40a503
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4 - 4]
movzx esi, word [eax + 8]
push esi
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 8]
call fcn.00407eaa
add esp, 0xc
cmp al, 1
jne 0x40a922
cmp si, 0x4a
mov esi, dword [ebp - 8]
jne 0x40a634
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, 0x49
mov word [eax + 8], cx
jmp 0x40a634
inc esi
jmp 0x40a440
cmp edi, 0x5a
ja 0x40a482
jmp 0x40a693
push dword [ebp + 0x10]
call fcn.0040a3bf
test eax, eax
js 0x44fcaa
xor eax, eax
lea ecx, [ebp - 0x20]
cmp word [ebp - 0x10], 0x24
sete al
add eax, 0x32
push eax
call fcn.0040ab1f
inc esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 8], esi
call fcn.0040abe7
movzx edi, word [ebx + esi*2]
cmp di, 0x5a
jbe 0x40a5ef
cmp di, 0x61
jb 0x40a5f7
cmp di, 0x7a
ja 0x40a5f7
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
cmp edx, 1
jg 0x44fb6b
xor al, al
test al, al
jne 0x44fb72
mov eax, dword [ebp - 0x2c]
add eax, 2
cmp dword [ebp - 0x28], eax
jb 0x40a837
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov word [ecx + eax*2], di
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x2c], ecx
inc esi
mov word [eax + ecx*2], dx
jmp 0x40a58f
cmp di, 0x41
jae 0x40a5a5
jmp 0x40a599
cmp di, 0x30
jae 0x40a6b4
cmp di, 0x5f
je 0x40a5a5
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 8], esi
je 0x40a99d
lea ecx, [ebp - 0x30]
call fcn.0040b159
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_CharUpperBuffW]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ab97
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
cmp word [ebx + esi*2], 0
jne 0x40a440
push 0x7f
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
mov word [ebp - 0x16], si
call fcn.0040aa39
xor esi, esi
lea ecx, [ebp - 0x30]
call fcn.0040ac28
mov eax, dword [ebp - 0x18]
add eax, 0xffffffd0
cmp ax, 0xf
jbe 0x44fcc0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 0x7a
ja 0x40a48b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.00406b3f
cmp dword [ebp - 0x20], 0xffffffff
je 0x44fc7a
mov esi, dword [ebp - 8]
jmp 0x40a634
cmp di, 0x39
ja 0x40a601
jmp 0x40a5a5
inc esi
mov dword [ebp - 8], esi
cmp word [ebx + esi*2], 0x3d
je 0x44fb5d
mov eax, 0x41
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
jmp 0x40a634
push 0x4e
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
inc esi
mov dword [ebp - 8], esi
jmp 0x40a640
push 0x47
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
inc esi
mov dword [ebp - 8], esi
jmp 0x40a640
push 0x48
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
inc esi
mov dword [ebp - 8], esi
jmp 0x40a640
push 0x40
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
inc esi
mov dword [ebp - 8], esi
jmp 0x40a640
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
call fcn.00408138
lea ecx, [ebp - 0x20]
test eax, eax
js 0x44fc95
push 0x36
call fcn.0040ab1f
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ab97
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
mov esi, dword [ebp - 8]
jmp 0x40a640
push 0x4d
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
inc esi
mov dword [ebp - 8], esi
cmp word [ebx + esi*2], 0x3d
jne 0x40a634
push 0x56
jmp 0x40a7dc
push 0x49
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
inc esi
mov dword [ebp - 8], esi
cmp word [ebx + esi*2], 0x3d
jne 0x40a634
push 0x52
inc esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], esi
call fcn.0040ab1f
jmp 0x40a634
push 0x4c
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
inc esi
mov dword [ebp - 8], esi
cmp word [ebx + esi*2], 0x3d
jne 0x40a634
inc esi
lea ecx, [ebp - 0x20]
push 0x55
mov dword [ebp - 8], esi
call fcn.0040ab1f
jmp 0x40a634
push 0x4b
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
inc esi
mov dword [ebp - 8], esi
cmp word [ebx + esi*2], 0x3d
jne 0x40a634
jmp 0x44facb
cmp eax, 0x41c2
jae 0x44fbe0
add eax, eax
test eax, eax
je 0x44fc70
add eax, 7
and eax, 0xfffffff8
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042015b
mov ecx, dword [ebp - 0x30]
add esp, 4
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x40a89e
mov eax, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00421170
add esp, 0xc
push dword [ebp - 0x30]
call fcn.00420164
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 0x30], eax
jmp 0x40a5d2
push 0x4a
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
inc esi
mov dword [ebp - 8], esi
cmp word [ebx + esi*2], 0x3d
jne 0x40a634
jmp 0x44fac4
inc esi
mov dword [ebp - 8], esi
cmp word [ebx + esi*2], 0x3d
je 0x40a90c
mov eax, 0x42
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
jmp 0x40a634
movzx eax, word [ebx + esi*2 + 2]
inc esi
mov dword [ebp - 8], esi
sub eax, 0x3d
je 0x40a98e
sub eax, 1
je 0x40a917
mov eax, 0x43
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
jmp 0x40a634
inc esi
mov eax, 0x45
mov dword [ebp - 8], esi
jmp 0x40a8d4
mov eax, 0x44
inc esi
mov dword [ebp - 8], esi
jmp 0x40a8fe
mov esi, dword [ebp - 8]
cmp edi, 0x2e
jne 0x40a479
inc esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 8], esi
call fcn.0040abe7
movzx eax, word [ebx + esi*2]
cmp ax, 0x5a
jbe 0x40a95c
cmp ax, 0x61
jb 0x40a964
cmp ax, 0x7a
ja 0x40a964
push eax
lea ecx, [ebp - 0x30]
call fcn.00409c50
inc esi
jmp 0x40a93a
cmp ax, 0x41
jae 0x40a950
jmp 0x40a944
cmp ax, 0x30
jae 0x40a995
cmp ax, 0x5f
je 0x40a950
cmp ax, 0x7f
ja 0x40a950
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 8], esi
je 0x40a99d
push 0x35
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
jmp 0x40a628
mov eax, 0x46
jmp 0x40a91c
cmp ax, 0x39
jbe 0x40a950
jmp 0x40a96a
lea eax, [esi - 1]
push eax
jmp 0x44fcab
push 0x53
jmp 0x40a7dc
push 0x54
jmp 0x40a7dc
push 0x51
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
inc esi
mov dword [ebp - 8], esi
jmp 0x40a640
push 0x57
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
inc esi
mov dword [ebp - 8], esi
jmp 0x40a640
push 0x58
lea ecx, [ebp - 0x20]
call fcn.0040ab1f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
inc esi
mov dword [ebp - 8], esi
jmp 0x40a640
test esi, esi
jne case.0x40a4bb.27
cmp word [ebx + 2], si
jne case.0x40a4bb.27
mov eax, dword [ebp + 8]
cmp eax, dword [0x4d33c0]
jl case.0x40a4bb.27
mov esi, 1
mov dword [ebp - 8], esi
jmp 0x40a640
inc esi
mov eax, 0x50
mov dword [ebp - 8], esi
jmp 0x40a6d7
mov al, 1
jmp 0x40a5b5
lea eax, [edx - 1]
push 4
mov dword [ecx], eax
call fcn.0042012b
add esp, 4
mov dword [eax], 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
add eax, 2
jne 0x44fb99
mov eax, 8
jmp 0x44fb9f
add eax, 7
and eax, 0xfffffff8
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042015b
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp + 0xc], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x30]
push eax
call fcn.00421170
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x30], ecx
jmp 0x40a5d5
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
test eax, eax
jns 0x44fbf0
fadd qword [0x4c91b0]
cmp eax, 0x2000000
jae 0x44fc1d
fmul qword [0x4c43d8]
fnstcw word [ebp + 0xe]
movzx eax, word [ebp + 0xe]
or eax, 0xc00
mov dword [ebp - 0x10], eax
fldcw word [ebp - 0x10]
fistp qword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
fldcw word [ebp + 0xe]
jmp 0x40a844
cmp eax, 0x8000000
jae 0x44fc4a
fmul qword [0x4c43d0]
fnstcw word [ebp + 0xe]
movzx eax, word [ebp + 0xe]
or eax, 0xc00
mov dword [ebp - 0x10], eax
fldcw word [ebp - 0x10]
fistp qword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
fldcw word [ebp + 0xe]
jmp 0x40a844
fmul qword [0x4c43c8]
fnstcw word [ebp + 0xe]
movzx eax, word [ebp + 0xe]
or eax, 0xc00
mov dword [ebp - 0x10], eax
fldcw word [ebp - 0x10]
fistp qword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
fldcw word [ebp + 0xe]
jmp 0x40a844
mov eax, 8
jmp 0x40a852
push dword [ebp - 8]
push 0x138c
jmp 0x44fcb0
push esi
push 0x1388
push dword [ebp + 8]
call fcn.00469d96
lea ecx, [ebp - 0x20]
push 0x7f
call fcn.0040ab1f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040aa39
jmp 0x44fcb8
push esi
push 0x138b
push dword [ebp + 8]
call fcn.00469d96
or esi, 0xffffffff
jmp 0x40a667
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40a67f
push ecx
call fcn.0041e570
jmp 0x40a67f