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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xe8
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x18]
call fcn.0040ab84
mov esi, dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
cmp eax, 2
jne 0x40c448
cmp edx, ebx
jne 0x40c448
lea eax, [esi + 0x130]
push eax
mov ecx, edi
call fcn.0040b39d
mov ecx, dword [edi + 0x18]
call fcn.0040ab84
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
cmp dword [ebp + 0x60], 3
push 4
pop eax
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x34], 0x414df4
jne 0x40c4c4
cmp dword [ebp + 0x64], ebx
jne 0x40c4c4
lea ecx, [ebp + 0x34]
push ecx
lea eax, [esi + 0x150]
push eax
push dword [esi + 0x144]
mov ecx, edi
push dword [esi + 0x140]
call fcn.0040c104
cmp eax, ebx
je 0x40c49c
mov ebx, eax
lea ecx, [ebp + 0x34]
call fcn.0040accc
mov eax, ebx
jmp 0x40c9e7
mov ecx, dword [esi + 0x140]
lea eax, [esi + 0x150]
add dword [eax], ecx
mov ecx, dword [esi + 0x144]
adc dword [eax + 4], ecx
mov ecx, dword [edi + 0x18]
call fcn.0040ab84
push 4
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
pop eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x30], 0x414dec
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x1c], 0x414dec
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0xc], 0x414dec
cmp dword [ebp + 0x60], eax
jne 0x40c565
cmp dword [ebp + 0x64], ebx
jne 0x40c565
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [esi + 0x50]
push ecx
lea ecx, [esi + 0x3c]
push ecx
lea ecx, [esi + 0x28]
push ecx
lea ecx, [esi + 0x14]
push ecx
push esi
lea eax, [esi + 0x148]
push eax
lea eax, [ebp + 0x34]
push eax
mov ecx, edi
call fcn.0040c085
mov ecx, dword [esi + 0x140]
lea eax, [esi + 0x148]
add dword [eax], ecx
mov ecx, dword [esi + 0x144]
adc dword [eax + 4], ecx
mov ecx, dword [edi + 0x18]
call fcn.0040ab84
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
jmp 0x40c5bb
cmp dword [esi + 0x44], ebx
mov dword [ebp + 0x7c], ebx
jle 0x40c5bb
push 1
lea ecx, [esi + 0x50]
call fcn.0040cd6b
mov eax, dword [esi + 0x48]
mov ecx, dword [ebp + 0x7c]
mov ecx, dword [eax + ecx*4]
mov dword [ebp + 0x70], ecx
call fcn.0040962a
push edx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040aca2
mov eax, dword [ebp + 0x70]
movzx eax, byte [eax + 0x54]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409476
mov eax, dword [ebp + 0x70]
push dword [eax + 0x50]
lea ecx, [ebp + 0xc]
call fcn.0040cd6b
inc dword [ebp + 0x7c]
mov eax, dword [ebp + 0x7c]
cmp eax, dword [esi + 0x44]
jl 0x40c56d
lea ecx, [esi + 0x64]
call fcn.0040e96c
mov eax, dword [ebp + 0x60]
or eax, dword [ebp + 0x64]
jne 0x40c5e8
lea ecx, [ebp + 0xc]
call fcn.0040e9eb
lea ecx, [ebp - 0x1c]
call fcn.0040e9eb
lea ecx, [ebp - 0x30]
call fcn.0040e9eb
jmp 0x40c48d
cmp dword [ebp + 0x60], 5
jne 0x40c5f3
cmp dword [ebp + 0x64], ebx
je 0x40c5f8
call fcn.0040aae9
mov ecx, dword [edi + 0x18]
call fcn.0040ac19
push eax
lea ecx, [esi + 0x64]
mov dword [ebp + 0x7c], eax
call fcn.0040e8a3
cmp dword [ebp + 0x7c], ebx
jbe 0x40c636
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x70], eax
lea ecx, [ebp - 0x74]
call fcn.0040b580
push eax
lea ecx, [esi + 0x64]
call fcn.0040ba4c
push dword [ebp - 0x64]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
dec dword [ebp + 0x70]
pop ecx
jne 0x40c617
push ebx
lea ecx, [esi + 0x158]
push 9
call fcn.0040aca2
cmp dword [esi + 8], ebx
je 0x40c657
push ebx
push 6
lea ecx, [esi + 0x158]
call fcn.0040aca2
cmp dword [ebp + 0x7c], ebx
jbe 0x40c66f
cmp dword [ebp + 0x14], ebx
je 0x40c66f
push ebx
push 0xa
lea ecx, [esi + 0x158]
call fcn.0040aca2
lea eax, [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], 1
mov dword [ebp + 0x20], 0x414dec
call fcn.0040ad62
pop ecx
xor ecx, ecx
inc ecx
mov eax, 0x414dec
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], eax
mov dword [ebp + 0x68], ebx
jmp 0x40c8e2
mov ecx, dword [edi + 0x18]
call fcn.0040ab84
mov ecx, dword [edi + 0x18]
mov dword [ebp + 0x58], eax
mov eax, dword [ecx + 8]
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x54], ebx
ja case.0x40c6ff.22
jb 0x40c6f0
cmp dword [ebp + 0x50], 0x40000000
ja case.0x40c6ff.22
mov eax, dword [ebp + 0x50]
add eax, 0xfffffff2
cmp eax, 0xb
ja case.0x40c6ff.22
jmp dword [eax*4 + 0x40c9f4]
lea eax, [ebp + 0x34]
push eax
push edi
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x50], bl
call fcn.0040bb20
cmp dword [esi + 0x6c], ebx
mov dword [ebp + 0x6c], ebx
jle 0x40c73e
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp + 0x6c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [edi + 0x18]
add eax, 0x10
push eax
call fcn.0040b147
inc dword [ebp + 0x6c]
mov eax, dword [ebp + 0x6c]
cmp eax, dword [esi + 0x6c]
jl 0x40c71e
lea ecx, [ebp - 0x54]
call fcn.0040bad1
push dword [ebp + 0x54]
lea ecx, [esi + 0x158]
push dword [ebp + 0x50]
call fcn.0040aca2
jmp 0x40c8b4
lea eax, [ebp - 0x68]
push eax
push dword [esi + 0x6c]
mov ecx, edi
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x68], 0x414dec
call fcn.0040ae0e
lea eax, [ebp + 0x34]
push eax
push edi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x48], bl
call fcn.0040bb20
mov dword [ebp + 0x6c], ebx
cmp dword [ebp + 0x7c], ebx
jbe 0x40c7cb
mov ecx, ebx
mov eax, dword [esi + 0x70]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x5c]
mov al, byte [eax + ecx]
mov dword [ebp + 0x64], edx
mov byte [edx + 0x1f], al
cmp al, bl
je 0x40c7c2
mov ecx, dword [edi + 0x18]
call fcn.0040ac2f
mov ecx, dword [ebp + 0x64]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 0x6c]
inc ecx
mov dword [ebp + 0x6c], ecx
cmp ecx, dword [ebp + 0x7c]
jb 0x40c79b
lea ecx, [ebp - 0x4c]
call fcn.0040bad1
lea ecx, [ebp - 0x68]
call fcn.0040e9eb
jmp 0x40c746
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x7c]
mov ecx, edi
call fcn.0040adb7
xor eax, eax
cmp dword [ebp + 0x28], ebx
jbe 0x40c806
mov ecx, dword [ebp + 0x2c]
cmp byte [ecx + eax], bl
je 0x40c800
inc dword [ebp + 0x68]
inc eax
cmp eax, dword [ebp + 0x28]
jb 0x40c7f5
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0x68]
call fcn.0040ad62
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x68]
call fcn.0040ad62
pop ecx
pop ecx
jmp 0x40c746
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x68]
mov ecx, edi
call fcn.0040adb7
jmp 0x40c746
lea eax, [ebp - 8]
jmp 0x40c828
lea eax, [esi + 0xf0]
push dword [ebp + 0x7c]
mov ecx, edi
push eax
lea eax, [ebp + 0x34]
push eax
call fcn.0040bdd3
jmp 0x40c746
lea eax, [esi + 0x78]
jmp 0x40c843
lea eax, [esi + 0xa0]
jmp 0x40c843
lea eax, [esi + 0xc8]
jmp 0x40c843
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
cmp dword [ebp + 0x5c], ebx
jb 0x40c8b4
ja 0x40c87e
cmp dword [ebp + 0x58], ebx
jbe 0x40c8b4
mov ecx, dword [edi + 0x18]
call fcn.0040ab09
test al, al
jne 0x40c5f3
add dword [ebp + 0x48], 1
adc dword [ebp + 0x4c], ebx
mov eax, dword [ebp + 0x4c]
cmp eax, dword [ebp + 0x5c]
jb 0x40c87e
ja 0x40c8b4
mov eax, dword [ebp + 0x48]
cmp eax, dword [ebp + 0x58]
jb 0x40c87e
jmp 0x40c8b4
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
call fcn.0040ab57
cmp byte [esi + 0x130], bl
ja 0x40c8c5
cmp byte [esi + 0x131], 2
jbe 0x40c8e2
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 8]
sub eax, dword [ebp + 0x70]
xor ecx, ecx
cmp eax, dword [ebp + 0x58]
jne 0x40c5f3
cmp ecx, dword [ebp + 0x5c]
jne 0x40c5f3
mov ecx, dword [edi + 0x18]
call fcn.0040ab84
mov dword [ebp + 0x50], eax
or eax, edx
mov dword [ebp + 0x54], edx
jne 0x40c6c1
xor edi, edi
xor eax, eax
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x70], ebx
cmp dword [ebp + 0x68], ebx
jbe 0x40c918
mov ecx, dword [ebp + 4]
cmp byte [ecx + eax], bl
je 0x40c912
inc dword [ebp + 0x70]
inc eax
cmp eax, dword [ebp + 0x68]
jb 0x40c907
xor ecx, ecx
mov dword [ebp + 0x6c], ecx
cmp dword [ebp + 0x7c], ebx
jbe 0x40c9ad
mov edx, dword [ebp + 0x2c]
cmp byte [edx + ecx], bl
mov eax, dword [esi + 0x70]
mov eax, dword [eax + ecx*4]
sete cl
mov byte [eax + 0x1c], cl
cmp cl, bl
je 0x40c966
mov byte [eax + 0x1d], bl
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + edi*8]
mov dword [eax], edx
mov ecx, dword [ecx + edi*8 + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + edi*4]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + edi]
mov byte [ebp + 0x68], bl
mov byte [eax + 0x1e], cl
inc edi
jmp 0x40c98a
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x64]
cmp byte [edx + ecx], bl
sete dl
mov byte [eax + 0x1d], dl
mov edx, dword [ebp + 4]
mov dl, byte [edx + ecx]
inc ecx
mov byte [ebp + 0x68], dl
mov dword [ebp + 0x64], ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov byte [eax + 0x1e], bl
cmp dword [ebp + 0x70], ebx
je 0x40c99d
push dword [ebp + 0x68]
lea ecx, [esi + 0x118]
call fcn.00409476
mov ecx, dword [ebp + 0x6c]
inc ecx
mov dword [ebp + 0x6c], ecx
cmp ecx, dword [ebp + 0x7c]
jb 0x40c926
lea ecx, [ebp - 8]
call fcn.0040e9eb
lea ecx, [ebp - 0x44]
call fcn.0040e9eb
lea ecx, [ebp + 0x20]
call fcn.0040e9eb
lea ecx, [ebp + 0xc]
call fcn.0040e9eb
lea ecx, [ebp - 0x1c]
call fcn.0040e9eb
lea ecx, [ebp - 0x30]
call fcn.0040e9eb
lea ecx, [ebp + 0x34]
call fcn.0040accc
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4