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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x18]
call fcn.0040afc4
cmp eax, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jne 0x40c09c
test edx, edx
jne 0x40c09c
call fcn.0040b34f
mov edi, dword [esi + 0x18]
call fcn.0040afc4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor ecx, ecx
cmp eax, 3
push 4
pop esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], 0x4203ac
jne 0x40c127
cmp edx, ecx
jne 0x40c127
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push eax
lea edi, [ebx + 0x150]
push edi
push dword [ebx + 0x144]
push dword [ebx + 0x140]
push dword [ebp + 8]
call fcn.0040bcf8
test eax, eax
je 0x40c103
mov esi, eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x4203ac
call fcn.0040ea49
lea ecx, [ebp - 0x3c]
call fcn.0040ea1d
mov eax, esi
jmp 0x40c72d
mov eax, dword [ebx + 0x140]
add dword [edi], eax
mov eax, dword [ebx + 0x144]
adc dword [edi + 4], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x18]
call fcn.0040afc4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x40c12a
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp - 0x10], esi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], 8
mov dword [ebp - 0xac], 0x420314
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0xc0], 0x420314
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x84], 0x420314
jne 0x40c1f2
cmp dword [ebp - 0xc], eax
jne 0x40c1f2
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebx + 0x50]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebx + 0x28]
push eax
lea eax, [ebx + 0x14]
push eax
push ebx
lea edi, [ebx + 0x148]
push edi
lea eax, [ebp - 0x3c]
push eax
call fcn.0040bb7f
mov eax, dword [ebx + 0x140]
add dword [edi], eax
mov eax, dword [ebx + 0x144]
adc dword [edi + 4], eax
mov edi, dword [esi + 0x18]
call fcn.0040afc4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x40c248
cmp dword [ebx + 0x44], eax
mov dword [ebp - 4], eax
jle 0x40c248
push 1
lea esi, [ebx + 0x50]
call fcn.004039e3
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebp - 4]
mov edi, dword [eax + ecx*4]
call fcn.00409cb8
push edx
push eax
lea esi, [ebp - 0xac]
call fcn.004092c9
movzx eax, byte [edi + 0x54]
push eax
lea esi, [ebp - 0xc0]
call fcn.00409d00
push dword [edi + 0x50]
lea esi, [ebp - 0x84]
call fcn.004039e3
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x44]
jl 0x40c1fa
lea esi, [ebx + 0x64]
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.0040ea49
mov eax, dword [ebp - 0x10]
or eax, dword [ebp - 0xc]
jne 0x40c285
lea ecx, [ebp - 0x84]
call fcn.0040ea1d
lea ecx, [ebp - 0xc0]
call fcn.0040ea1d
lea ecx, [ebp - 0xac]
call fcn.0040ea1d
xor esi, esi
jmp 0x40c0e5
cmp dword [ebp - 0x10], 5
jne 0x40c291
cmp dword [ebp - 0xc], 0
je 0x40c296
call fcn.0040ae2d
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x18]
call fcn.0040b055
mov edi, eax
mov ebx, edi
mov dword [ebp - 8], edi
call fcn.0040ea94
xor ebx, ebx
cmp edi, ebx
jbe 0x40c323
mov dword [ebp - 4], edi
lea eax, [ebp - 0x60]
call fcn.004018b5
push 0x20
mov byte [ebp - 0x54], 1
mov byte [ebp - 0x53], bl
mov byte [ebp - 0x52], bl
mov byte [ebp - 0x51], bl
call fcn.004137d0
mov esi, eax
cmp esi, ebx
pop ecx
je 0x40c30a
mov eax, dword [ebp - 0x70]
mov dword [esi], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x64]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x10]
lea edi, [ebp - 0x60]
call fcn.00401661
mov byte [esi + 0x1c], 1
mov byte [esi + 0x1d], bl
mov byte [esi + 0x1e], bl
mov byte [esi + 0x1f], bl
jmp 0x40c30c
xor esi, esi
push esi
mov esi, dword [ebp - 0x14]
call fcn.004039e3
push dword [ebp - 0x60]
call fcn.0041383a
dec dword [ebp - 4]
pop ecx
jne 0x40c2b6
mov edi, dword [ebp + 0xc]
push ebx
lea esi, [edi + 0x158]
push 9
mov dword [ebp - 0x14], esi
call fcn.004092c9
cmp dword [edi + 8], ebx
je 0x40c344
push ebx
push 6
call fcn.004092c9
cmp dword [ebp - 8], ebx
jbe 0x40c356
cmp dword [ebp - 0x7c], ebx
je 0x40c356
push ebx
push 0xa
call fcn.004092c9
mov eax, dword [ebp - 8]
xor edi, edi
inc edi
mov esi, 0x420314
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x50], esi
call fcn.0040abfe
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x98], esi
mov dword [ebp - 4], ebx
jmp 0x40c5f2
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x18]
call fcn.0040afc4
cmp dword [ebp - 0x24], ebx
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], eax
ja case.0x40c3fd.22
jb 0x40c3ee
cmp dword [ebp - 0x28], 0x40000000
ja case.0x40c3fd.22
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff2
cmp eax, 0xb
ja case.0x40c3fd.22
jmp dword [eax*4 + 0x40c737]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xe4]
mov byte [ebp - 0xe0], bl
call fcn.0040aef4
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp dword [eax + 0x6c], ebx
jle 0x40c440
mov ebx, eax
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + esi*4]
add eax, 0x10
push eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x18]
call fcn.0040b0a7
inc esi
cmp esi, dword [ebx + 0x6c]
jl 0x40c425
lea ebx, [ebp - 0xe4]
call fcn.0040ae4d
xor ebx, ebx
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x28]
call fcn.004092c9
jmp 0x40c5be
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x6c]
lea eax, [ebp - 0x64]
mov edi, esi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x64], 0x420314
call fcn.0040bc4a
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xdc]
mov byte [ebp - 0xd8], bl
call fcn.0040aef4
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x40c4cd
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x70]
mov edi, dword [eax + esi*4]
mov eax, dword [ebp - 0x58]
mov al, byte [eax + esi]
cmp al, bl
mov byte [edi + 0x1f], al
je 0x40c4c7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
call fcn.0040b06d
mov dword [edi + 8], eax
inc esi
cmp esi, dword [ebp - 8]
jb 0x40c4a3
lea ebx, [ebp - 0xdc]
call fcn.0040ae4d
lea ecx, [ebp - 0x64]
call fcn.0040ea1d
jmp 0x40c44b
mov ecx, dword [ebp - 8]
push esi
lea eax, [ebp - 0x50]
call fcn.0040bbf9
xor eax, eax
cmp dword [ebp - 0x48], ebx
jbe 0x40c509
mov ecx, dword [ebp - 0x44]
cmp byte [ecx + eax], bl
je 0x40c503
inc dword [ebp - 4]
inc eax
cmp eax, dword [ebp - 0x48]
jb 0x40c4f8
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xd4]
call fcn.0040abfe
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x98]
call fcn.0040abfe
jmp 0x40c44d
lea eax, [ebp - 0xd4]
mov ecx, dword [ebp - 4]
push esi
call fcn.0040bbf9
jmp 0x40c44d
lea eax, [ebp - 0x98]
jmp 0x40c530
mov eax, dword [ebp + 0xc]
add eax, 0xf0
push dword [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.0040bc85
jmp 0x40c44d
mov eax, dword [ebp + 0xc]
add eax, 0x78
jmp 0x40c54e
mov eax, dword [ebp + 0xc]
add eax, 0xa0
jmp 0x40c54e
mov eax, dword [ebp + 0xc]
add eax, 0xc8
jmp 0x40c54e
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x1c], ebx
jb 0x40c5be
ja 0x40c58d
cmp dword [ebp - 0x20], ebx
jbe 0x40c5be
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
call fcn.0040af36
test al, al
jne 0x40c291
add edi, 1
adc esi, ebx
cmp esi, dword [ebp - 0x1c]
jb 0x40c58d
ja 0x40c5be
cmp edi, dword [ebp - 0x20]
jb 0x40c58d
jmp 0x40c5be
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0040af84
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x130], bl
ja 0x40c5d2
cmp byte [eax + 0x131], 2
jbe 0x40c5f2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, dword [ebp - 0x20]
jne 0x40c291
cmp ecx, dword [ebp - 0x1c]
jne 0x40c291
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x18]
call fcn.0040afc4
mov dword [ebp - 0x28], eax
or eax, edx
mov dword [ebp - 0x24], edx
jne 0x40c3bc
xor edi, edi
xor eax, eax
cmp dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], ebx
jbe 0x40c62e
mov ecx, dword [ebp - 0x8c]
cmp byte [ecx + eax], bl
je 0x40c628
inc dword [ebp + 8]
inc eax
cmp eax, dword [ebp - 4]
jb 0x40c61a
xor ecx, ecx
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x14], ecx
jbe 0x40c6d5
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 0xc]
cmp byte [edx + ecx], bl
mov eax, dword [eax + 0x70]
mov eax, dword [eax + ecx*4]
sete cl
cmp cl, bl
mov byte [eax + 0x1c], cl
je 0x40c685
mov byte [eax + 0x1d], bl
mov ecx, dword [ebp - 0xa0]
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 - 0x78]
mov ecx, dword [ecx + edi*4]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xb4]
mov cl, byte [ecx + edi]
mov byte [ebp - 4], bl
mov byte [eax + 0x1e], cl
inc edi
jmp 0x40c6af
mov ecx, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xc]
cmp byte [ecx + esi], bl
sete cl
mov byte [eax + 0x1d], cl
mov ecx, dword [ebp - 0x8c]
mov cl, byte [ecx + esi]
inc esi
mov byte [ebp - 4], cl
mov dword [ebp - 0xc], esi
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov byte [eax + 0x1e], bl
cmp dword [ebp + 8], ebx
je 0x40c6c5
mov esi, dword [ebp + 0xc]
push dword [ebp - 4]
add esi, 0x118
call fcn.00409d00
mov ecx, dword [ebp - 0x14]
inc ecx
cmp ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
jb 0x40c63c
lea ecx, [ebp - 0x98]
call fcn.0040ea1d
lea ecx, [ebp - 0xd4]
call fcn.0040ea1d
lea ecx, [ebp - 0x50]
call fcn.0040ea1d
lea ecx, [ebp - 0x84]
call fcn.0040ea1d
lea ecx, [ebp - 0xc0]
call fcn.0040ea1d
lea ecx, [ebp - 0xac]
call fcn.0040ea1d
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x4203ac
call fcn.0040ea49
lea ecx, [ebp - 0x3c]
call fcn.0040ea1d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8