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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40c847
sub esp, 0x44
cmp dword [0x8da178], 2
je 0x40c830
mov edx, dword [esp + 0x48]
test edx, edx
je 0x40c7b0
movzx ebx, byte [0x8da4c0]
test bl, bl
je 0x40c116
mov ebx, dword [0x8da4cc]
test ebx, ebx
je 0x40c0be
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40c0b7
test edx, 7
jne 0x40c092
mov eax, 8
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [0x8dc400]
mov dword [esp + 8], eax
call fcn.0040cbc0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
add esp, 0x44
ret
test edx, 3
jne 0x40c0a1
mov eax, 4
jmp 0x40c070
test edx, 1
jne 0x40c0b0
mov eax, 2
jmp 0x40c070
mov eax, 1
jmp 0x40c070
mov eax, 0x10
jmp 0x40c070
movzx ebx, byte [0x8da3e0]
test bl, bl
je 0x40c116
mov ebx, dword [0x8da3e8]
mov ebp, dword fs:[0x14]
mov ebp, dword [ebp]
cmp dword [ebp + 0x54], ebx
sete bl
mov esi, dword [0x8da3e4]
cmp dword [ebp + 0x50], esi
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebx, ebp
test bl, bl
je 0x40c116
mov ebx, dword [0x8da3ec]
add ebx, 1
mov ebp, dword [0x8da3f0]
mov dword [0x8da3ec], ebx
adc ebp, 0
mov dword [0x8da3f0], ebp
mov ebx, dword [0x8da16c]
test ebx, ebx
je 0x40c7a9
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x18]
mov ebp, dword [ebp + 0x4c]
test ebp, ebp
je 0x40c7a2
mov ebx, dword [ebp + 0xd0]
sub ebx, edx
mov esi, dword [ebp + 0xd4]
mov dword [ebp + 0xd0], ebx
sbb esi, 0
mov dword [ebp + 0xd4], esi
test esi, esi
jl 0x40c789
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov esi, dword [ebx + 0x18]
nop
inc dword [esi + 0x78]
mov esi, dword [ebx + 0x18]
test byte [ebx], al
mov ebx, dword [esi + 0x68]
test ebx, ebx
jne 0x40c81a
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
cmp dword [esi + 0x2c], ebx
je 0x40c804
mov dword [esi + 0x68], 1
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x18]
mov ebx, dword [ebx + 0x54]
test ebx, ebx
je 0x40c77e
mov ebx, dword [ebx + 0x30]
test ebx, ebx
je 0x40c7ee
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x40c772
mov eax, ebp
mov ebp, dword [edi + 4]
test ebp, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], ebx
xchg ebp, eax
mov byte [esp + 0x17], al
xchg ebp, eax
mov dword [esp + 0x40], eax
cmp edx, 0x8000
ja 0x40c72d
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x40c60f
cmp edx, 0x10
jae 0x40c60f
mov ecx, dword [ebx + 0xc]
test edx, 7
jne 0x40c5d7
nop
add ecx, 7
and ecx, 0xfffffff8
lea eax, [ecx + edx]
cmp eax, 0x10
ja 0x40c27d
mov edi, dword [ebx + 8]
test edi, edi
je 0x40c27d
add ecx, edi
mov dword [ebx + 0xc], eax
inc dword [ebx + 0x10]
mov dword [esi + 0x68], 0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov edx, dword [esi + 0x78]
lea ebx, [edx - 1]
mov dword [esi + 0x78], ebx
cmp edx, 1
jne 0x40c275
movzx edx, byte [eax + 0x65]
test dl, dl
je 0x40c275
mov dword [eax + 8], 0xfffffade
mov dword [esp + 0x54], ecx
add esp, 0x44
ret
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp], eax
call fcn.0040bcf0
mov eax, dword [esp + 4]
test eax, eax
je 0x40c5b4
mov ecx, dword [esp + 0x18]
xor edx, edx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 0xc], ebx
jbe 0x40c5a2
mov esi, eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
mov eax, 0x10
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov byte [esp + 0x16], dl
mov dword [esp + 0x18], ecx
movzx edi, byte [esp + 0x17]
xchg edi, eax
test al, al
xchg edi, eax
je 0x40c540
xor edi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
call fcn.0045f280
mov eax, dword [0x8da178]
test eax, eax
jne 0x40c517
mov eax, dword [esp + 0x38]
mov dword [eax + 0x68], 0
nop
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [eax + 0x78]
lea ebx, [edx - 1]
mov dword [eax + 0x78], ebx
cmp edx, 1
jne 0x40c349
movzx eax, byte [ecx + 0x65]
test al, al
je 0x40c349
mov dword [ecx + 8], 0xfffffade
movzx eax, byte [0x8da4c0]
test al, al
je 0x40c50e
mov eax, dword [0x8da4c4]
test eax, eax
jne 0x40c4ed
movzx eax, byte [0x8da3e0]
test al, al
je 0x40c4e4
mov eax, dword [0x8da3e4]
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp dword [ecx + 0x50], eax
sete al
mov edx, dword [0x8da3e8]
cmp dword [ecx + 0x54], edx
sete cl
and ecx, eax
test cl, cl
je 0x40c4e4
mov eax, dword [0x8da3f4]
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov edx, dword [0x8da3f8]
mov dword [0x8da3f4], eax
adc edx, 0
mov dword [0x8da3f8], edx
mov eax, dword [0x6bb12c]
test eax, eax
jle 0x40c3ea
cmp eax, 1
je 0x40c47d
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
cmp edx, ecx
jbe 0x40c47d
sub edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40c415
mov edx, dword [eax + 0xd0]
mov ebx, dword [esp + 0x20]
sub ecx, ebx
sub edx, ecx
mov ecx, dword [eax + 0xd4]
mov dword [eax + 0xd0], edx
sbb ecx, 0
mov dword [eax + 0xd4], ecx
movzx eax, byte [esp + 0x16]
test al, al
jne 0x40c42a
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
add esp, 0x44
ret
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
call fcn.00418dd0
movzx eax, byte [esp + 0x10]
test al, al
je 0x40c41e
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
call fcn.00418ef0
jmp 0x40c41e
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov edx, dword [eax + 0x18]
nop
inc dword [edx + 0x78]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp], eax
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0040c940
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x40c4db
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x40c4db
mov dword [eax + 8], 0xfffffade
mov ecx, dword [esp + 0x2c]
jmp 0x40c3ea
mov ecx, dword [esp + 0x2c]
jmp 0x40c3c5
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
call fcn.0042be40
jmp 0x40c366
mov ecx, dword [esp + 0x2c]
jmp 0x40c3c5
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], edx
call fcn.0041f700
jmp 0x40c313
mov edi, dword [esp + 0x4c]
cmp dword [0x8bc200], edi
jne 0x40c551
mov ebx, 0x28
mov dword [esp + 0x20], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
call fcn.00413690
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jbe 0x40c59b
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x40c595
mov ebp, edx
sub edx, ecx
lea ecx, [edx + ebx]
mov edx, dword [esp + 0x24]
add dword [edx + 4], ecx
mov edi, ecx
mov ebx, ebp
jmp 0x40c2f8
mov ebp, edx
xor ecx, ecx
jmp 0x40c585
mov ecx, dword [eax + 4]
mov ebp, edx
jmp 0x40c585
mov esi, dword [ebp + 8]
test esi, esi
je 0x40c2ca
mov esi, eax
jmp 0x40c2d2
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov byte [esp + 4], 5
call fcn.0040be00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx edx, byte [esp + 0x10]
jmp 0x40c29e
cmp edx, 0xc
jne 0x40c5e7
add ecx, 7
and ecx, 0xfffffff8
jmp 0x40c22c
test edx, 3
jne 0x40c5fa
add ecx, 3
and ecx, 0xfffffffc
jmp 0x40c22c
test edx, 1
jne 0x40c22c
inc ecx
and ecx, 0xfffffffe
jmp 0x40c22c
cmp edx, 0x3f8
ja 0x40c701
mov ecx, esi
lea esi, [edx + 7]
shr esi, 3
cmp esi, 0x81
jae 0x40c7e2
lea edx, [0x6bf120]
movzx edx, byte [edx + esi]
movzx esi, dl
cmp esi, 0x44
jae 0x40c7ca
lea edi, [0x6bf260]
movzx esi, word [edi + esi*2]
nop
shl edx, 1
xchg ebp, eax
movzx edi, al
xchg ebp, eax
or edx, edi
movzx edi, dl
cmp edi, 0x88
jae 0x40c7be
mov byte [esp + 0x15], dl
mov dword [esp + 0x2c], esi
mov eax, dword [ebx + edi*4 + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp], eax
call fcn.0040bcf0
mov eax, dword [esp + 4]
test eax, eax
je 0x40c6dd
mov ecx, dword [esp + 0x18]
xor edx, edx
movzx ebx, byte [esp + 0x50]
test bl, bl
je 0x40c69f
movzx ebx, byte [ecx + 0x3c]
test bl, bl
jne 0x40c6b2
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x2c]
jmp 0x40c2d7
mov dword [esp + 0x30], eax
mov byte [esp + 0x16], dl
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.0045fdf0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx edx, byte [esp + 0x16]
jmp 0x40c69f
mov eax, dword [esp + 0x24]
mov dword [esp], eax
movzx ecx, byte [esp + 0x15]
mov byte [esp + 4], cl
call fcn.0040be00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx edx, byte [esp + 0x10]
jmp 0x40c68e
mov ecx, esi
lea esi, [edx - 0x381]
shr esi, 7
cmp esi, 0xf9
jae 0x40c7d6
lea eax, str._______________________....______0001123333333333444444444455666677777888888888889999999999::::::___________________________________________________________________________AAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
movzx esi, byte [eax + esi]
mov eax, dword [esp + 0x40]
mov edx, esi
jmp 0x40c639
mov dword [esp], ebx
mov dword [esp + 4], edx
movzx eax, byte [esp + 0x50]
mov byte [esp + 8], al
xchg ebp, eax
mov byte [esp + 9], al
xchg ebp, eax
call fcn.00414f70
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x18], 1
mov word [ecx + 0x38], 1
mov esi, dword [ecx + 0xc]
nop
mov eax, dword [ecx + 0x40]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x24]
mov edx, 1
jmp 0x40c2d7
mov eax, ebp
mov ebp, 1
jmp 0x40c1e5
mov ebx, dword [0x8da188]
jmp 0x40c1c3
mov dword [esp + 0x3c], ebp
mov dword [esp], ebp
call fcn.0041c940
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
jmp 0x40c164
mov ebp, ebx
jmp 0x40c13f
xor ebp, ebp
jmp 0x40c164
lea eax, [0x8da1f0]
mov dword [esp + 0x54], eax
add esp, 0x44
ret
mov eax, edi
mov ecx, 0x88
call fcn.0045f6e0
mov eax, esi
mov ecx, 0x44
call fcn.0045f6e0
mov eax, esi
mov ecx, 0xf9
call fcn.0045f6f0
mov eax, esi
mov ecx, 0x81
call fcn.0045f6f0
lea eax, [0x74a644]
mov dword [esp], eax
mov dword [esp + 4], 0x34
call fcn.00433c50
lea eax, [0x7407dc]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00433c50
lea eax, [0x73e219]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.00433c50
lea eax, [0x74a315]
mov dword [esp], eax
mov dword [esp + 4], 0x32
call fcn.00433c50
nop
call fcn.0045e0e0
jmp fcn.0040c010