Function at 0x40a000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4c7480]
mov dword [esp + 4], ecx
and al, 4
push esi
push edi
test al, 1
je 0x40b536
mov edi, dword [ebp + 0x10]
xor eax, eax
push 8
mov word [esp + 0x5c], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
add byte [eax], al
invalid
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], 1
call fcn.00420ff6
mov edx, eax
mov dword [esp + 0x20], eax
add esp, 4
test edx, edx
je 0x40b68a
mov dword [edx], 0x14
mov esi, dword [ebp + 0xc]
mov dword [edx + 4], 0
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [esp + 0x50], 1
mov dword [esp + 0x10], 0x17
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
movsx eax, word [eax + 0xa]
mov dword [esp + 0x5c], eax
jmp 0x40a10a
mov byte [esp + 0x17], 1
cmp byte [esp + 0x17], 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x60]
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x18], eax
mov ecx, dword [esi]
mov eax, dword [0x4c7460]
mov dword [ecx + 0x18], eax
mov ecx, dword [esi]
mov eax, dword [0x4c745c]
mov dword [ecx + 0x1c], eax
je 0x40a5ac
mov eax, dword [esi]
test eax, eax
je 0x40a5ac
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40a5ac
push dword [esp + 0x4c]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push esi
push dword [ebp + 8]
inc dword [esi]
call fcn.0040ca20
test eax, eax
js 0x440d6e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi]
cmp ecx, eax
je case.0x40b1b7.4
mov esi, dword [edx + 4]
mov dword [esp + 0x40], esi
mov edx, dword [esi + ecx*4]
movzx eax, word [edx + 8]
cmp ax, 0x7f
je case.0x40b1b7.4
cwde
cmp eax, 0x33
je 0x40a1dc
cmp eax, 0x4f
je case.0x40b1b7.4
cmp eax, 5
je 0x40a4fc
cmp eax, 0x58
ja case.0x40b1b7.4
movzx eax, byte [eax + 0x40b7ac]
jmp dword [eax*4 + 0x40b740]
mov eax, dword [edx]
cmp eax, 4
jl 0x40b1a6
cmp eax, 0x27
jge 0x40b1a6
mov esi, 0x14
mov dword [esp + 0x10], esi
nop
mov cl, byte [esp + 0x59]
mov edx, dword [esp + 0x1c]
test cl, cl
jne 0x40a6e5
add byte [eax], al
mov eax, edx
imul eax, dword [eax], 0x15
movzx eax, byte [eax + esi + 0x4a5350]
cmp eax, 3
jne 0x40a494
cmp dword [esp + 0x24], 1
jne 0x40b732
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 8], eax
mov dword [esp + 0x18], edi
test eax, eax
jne 0x40a921
test edx, edx
je 0x40a1d2
jmp 0x40a1c0
mov esi, dword [edx + 4]
push edx
add al, 0x52
call fcn.0042106c
add esp, 4
mov edx, esi
test esi, esi
jne 0x40a1c0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], 0x16
test esi, esi
jne 0x40a8c1
cmp edi, 0x4c7488
je 0x40a236
cmp dword [edi + 0xc], 4
je 0x40b13a
mov esi, dword [edi + 8]
test esi, esi
jne 0x40b14c
mov eax, dword [edi + 0xc]
cmp eax, 5
jge 0x44098b
push 0x4c7488
mov ecx, edi
mov dword [edi + 0xc], 1
mov dword [edi], 0
call fcn.00409ac0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 8]
inc esi
mov dword [esp + 0x24], esi
cmp esi, 1
jne 0x40a90d
mov dword [esp + 0x4c], edi
jl 0x40a26f
dec esp
cmp dword [0x4c7280], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
je 0x40a5b0
cmp byte [0x4c7289], 0
mov dword [edx + 0x4c], esi
add byte [eax], al
jne 0x440b24
mov esi, dword [0x4c7284]
cmp dword [esi], 0
je 0x40a5b0
mov ecx, dword [0x4c7440]
mov byte [esp + 0x17], 0
test cl, 1
je 0x440b35
mov dword [0x4c7460], 0
mov dword [0x4c745c], 0
mov dword [esp + 0x3c], 0x4c7444
mov dword [esp + 0x60], 0x4c7444
mov edx, dword [esi]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov ecx, dword [edx + 4]
test eax, eax
je 0x440b5e
test ecx, ecx
je 0x440b66
cmp eax, ecx
jb 0x40a30d
mov ecx, dword [edx]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov edx, dword [edx]
test eax, eax
je 0x40a309
adc al, 0x66
mov eax, dword [edx]
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x40a336
add edx, 2
add ecx, 2
dec dword [esp + 0x38]
jne 0x40a2f5
xor eax, eax
jmp 0x40a33c
mov eax, dword [esp + 0x18]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x40a309
lea ecx, [ecx]
mov ax, word [eax]
cmp ax, word [edx]
mov eax, dword [esp + 0x38]
je 0x40b124
mov ax, word [eax]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
js 0x40a3be
jle 0x40a097
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x40a09c
mov edx, dword [ecx + 4]
cmp edx, eax
ja 0x40a970
push es
add byte [eax], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], edx
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
test edx, edx
je 0x40a3b1
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x38]
mov ax, word [eax]
cmp ax, word [edi]
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x48]
jne 0x40a450
add dword [esp + 0x38], 2
add eax, 2
dec dword [esp + 0x40]
mov dword [esp + 0x48], eax
jne 0x40a384
mov eax, dword [esp + 0x34]
cmp edx, eax
jb 0x40a45c
jmp 0x40a477
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x40a09c
mov edx, dword [ecx + 4]
cmp eax, edx
ja 0x40a9af
add eax, 0x118b0000
mov edx, dword [ecx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40a6d7
mov eax, dword [esp + 0x48]
lea esp, [esp]
mov ax, word [eax]
cmp ax, word [edx]
mov eax, dword [esp + 0x48]
je 0x40a6bf
mov ax, word [eax]
cmp ax, word [edx]
jae 0x40a433
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [esi]
mov dword [ecx + 0x1c], eax
mov dword [esi], ecx
cmp dword [ecx + 0x18], 0
je 0x40a09c
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
mov eax, dword [eax + 0x18]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
jmp 0x40a2c1
mov edx, dword [esp + 0x38]
mov ax, word [eax]
cmp ax, word [edx]
jae 0x40a477
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x1c], eax
mov eax, dword [esi]
mov dword [ecx + 0x18], eax
mov dword [esi], ecx
cmp dword [ecx + 0x1c], 0
je 0x40a09c
mov ecx, dword [esp + 0x60]
mov eax, dword [esi]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi]
mov dword [esp + 0x60], eax
mov eax, dword [eax + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
jmp 0x40a2c1
cmp eax, 6
ja case.0x40a499.3
jmp dword [eax*4 + 0x40b808]
test cl, cl
jne 0x40a9e6
push 8
call fcn.00420ff6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40b6f7
mov dword [ecx], esi
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], eax
inc dword [esp + 0x50]
cmp esi, 7
je 0x40b224
cmp esi, 8
je 0x40b224
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x10], edi
mov dword [esp + 8], eax
jmp 0x40a107
dec dword [ebx - 0x38dbdb8c]
inc esp
and al, 0x10
push ss
add byte [eax], al
add byte [ebp - 0x1d7af00a], al
add al, 0
add byte [ecx + 0x4c7488ff], al
add byte [esi + edi - 0x7d], dh
jg 0x40a527
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], 0x16
test esi, esi
jne 0x40a9f2
cmp edi, 0x4c7488
je 0x40a556
cmp dword [edi + 0xc], 4
je 0x40a977
add al, 0xf
test byte [ebp + 4], dl
add byte [eax], al
mov esi, dword [edi + 8]
test esi, esi
jne 0x40a989
mov eax, dword [edi + 0xc]
cmp eax, 5
jge 0x4407d5
push 0x4c7488
mov ecx, edi
mov dword [edi + 0xc], 1
mov dword [edi], 0
call fcn.00409ac0
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 8]
mov eax, dword [ebp + 0xc]
inc esi
mov dword [esp + 0x24], esi
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
add al, 0x8b
add al, 0x88
cmp esi, 1
jne 0x40aa3e
mov esi, edi
mov ecx, dword [esi + 8]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
test ecx, ecx
jne 0x44089b
mov eax, dword [esi + 0xc]
cmp eax, 5
jge 0x4408ad
mov eax, dword [esp + 0x4c]
mov dword [esi + 0xc], 1
mov dword [esi], eax
mov esi, dword [ebp + 0xc]
inc dword [esi]
jmp 0x40a107
mov eax, dword [esp + 0x18]
mov esi, dword [0x4c7270]
mov dword [esp + 0x34], esi
test esi, esi
je 0x440d42
mov ecx, dword [0x4c7440]
mov byte [esp + 0x17], 0
test cl, 1
je 0x440b73
mov dword [0x4c7460], 0
mov dword [0x4c745c], 0
mov dword [esp + 0x38], 0x4c7444
mov dword [esp + 0x60], 0x4c7444
lea ebx, [ebx]
add bh, al
inc esp
and al, 0x38
inc esp
je 0x40a63d
add bh, al
inc esp
and al, 0x60
inc esp
je 0x40a645
add byte [ebp + 0x9b], cl
add byte [ebx + 0x4e8b0450], cl
add al, 0x89
push esp
and al, 0x48
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
mov dword [esp + 0x48], edx
test edx, edx
je 0x440ba6
test ecx, ecx
je 0x440bae
cmp edx, ecx
jb 0x40a7b2
mov ecx, dword [esp + 0x34]
mov esi, edx
mov edx, dword [eax]
mov ecx, dword [ecx]
test esi, esi
je 0x40a645
div byte [ebp + edx + 0x66]
mov eax, dword [edx]
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x40a7fc
add edx, 2
add ecx, 2
dec esi
jne 0x40a630
ret 0x8302
xor eax, eax
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
test eax, eax
js 0x40a807
jg 0x40a6ed
mov byte [esp + 0x17], 1
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x60]
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x4c7270]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x18], eax
mov ecx, dword [0x4c7270]
mov eax, dword [0x4c7460]
mov dword [ecx + 0x18], eax
mov ecx, dword [0x4c7270]
mov eax, dword [0x4c745c]
mov dword [ecx + 0x1c], eax
je 0x440d42
mov eax, dword [0x4c7270]
test eax, eax
je 0x440d42
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x40a0e8
jmp 0x440d42
add eax, 2
add edx, 2
dec dword [esp + 0x38]
mov dword [esp + 0x48], eax
jne 0x40a400
mov eax, dword [esp + 0x34]
cmp eax, dword [ecx + 4]
jae 0x40a433
jmp 0x40a418
mov eax, dword [edx + 4]
jmp 0x40a182
lea eax, [esi + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
test eax, eax
je 0x40a662
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
add al, 0x89
dec esp
and al, 0x3c
cmp ecx, edx
jbe 0x40a70f
mov ecx, edx
mov dword [esp + 0x3c], edx
mov edx, dword [eax]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
test eax, eax
je 0x40a73b
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x40a743
add edx, 2
add ecx, 2
dec dword [esp + 0x40]
jne 0x40a723
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x48]
jb 0x40a745
jmp 0x40a768
jae 0x40a768
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx]
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
mov eax, dword [0x4c7270]
mov dword [esi + 0x18], eax
mov dword [0x4c7270], esi
cmp dword [esi + 0x1c], 0
je 0x40a662
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0x1c], esi
mov eax, dword [0x4c7270]
mov dword [esp + 0x60], eax
mov esi, dword [eax + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], esi
invalid
invalid
jo 0x40a7f9
dec esp