Function at 0x40ce00
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.0040bd4f
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp eax, 2
jne 0x40ce39
test edx, edx
jne 0x40ce39
call fcn.0040c0e2
mov edi, dword [esi + 0x18]
call fcn.0040bd4f
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor ecx, ecx
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], 0x415da8
cmp eax, 3
jne 0x40cec4
cmp edx, ecx
jne 0x40cec4
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.0040ca95
test eax, eax
je 0x40cea0
mov esi, eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x415da8
call fcn.0040f83a
lea ecx, [ebp - 0x3c]
call fcn.0040f80e
mov eax, esi
jmp 0x40d4ca
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.0040bd4f
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x40cec7
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], 8
mov dword [ebp - 0xac], 0x415a54
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0xc0], 0x415a54
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x84], 0x415a54
cmp dword [ebp - 0x10], esi
jne 0x40cf8f
cmp dword [ebp - 0xc], eax
jne 0x40cf8f
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.0040c919
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.0040bd4f
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x40cfe5
cmp dword [ebx + 0x44], eax
mov dword [ebp - 4], eax
jle 0x40cfe5
push 1
lea esi, [ebx + 0x50]
call fcn.00404030
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebp - 4]
mov edi, dword [eax + ecx*4]
call fcn.0040aa16
push edx
push eax
lea esi, [ebp - 0xac]
call fcn.0040a2e0
movzx eax, byte [edi + 0x54]
push eax
lea esi, [ebp - 0xc0]
call fcn.0040aa5e
push dword [edi + 0x50]
lea esi, [ebp - 0x84]
call fcn.00404030
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x44]
jl 0x40cf97
lea esi, [ebx + 0x64]
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.0040f83a
mov eax, dword [ebp - 0x10]
or eax, dword [ebp - 0xc]
jne 0x40d022
lea ecx, [ebp - 0x84]
call fcn.0040f80e
lea ecx, [ebp - 0xc0]
call fcn.0040f80e
lea ecx, [ebp - 0xac]
call fcn.0040f80e
xor esi, esi
jmp 0x40ce82
cmp dword [ebp - 0x10], 5
jne 0x40d02e
cmp dword [ebp - 0xc], 0
je 0x40d033
call fcn.0040bbb8
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x18]
call fcn.0040bde0
mov edi, eax
mov ebx, edi
mov dword [ebp - 8], edi
call fcn.0040f885
xor ebx, ebx
cmp edi, ebx
jbe 0x40d0c0
mov dword [ebp - 4], edi
lea eax, [ebp - 0x60]
call fcn.00401a43
push 0x20
mov byte [ebp - 0x54], 1
mov byte [ebp - 0x53], bl
mov byte [ebp - 0x52], bl
mov byte [ebp - 0x51], bl
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40d0a7
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.004017ea
mov byte [esi + 0x1c], 1
mov byte [esi + 0x1d], bl
mov byte [esi + 0x1e], bl
mov byte [esi + 0x1f], bl
jmp 0x40d0a9
xor esi, esi
push esi
mov esi, dword [ebp - 0x14]
call fcn.00404030
push dword [ebp - 0x60]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
dec dword [ebp - 4]
pop ecx
jne 0x40d053
mov edi, dword [ebp + 0xc]
push ebx
lea esi, [edi + 0x158]
push 9
mov dword [ebp - 0x14], esi
call fcn.0040a2e0
cmp dword [edi + 8], ebx
je 0x40d0e1
push ebx
push 6
call fcn.0040a2e0
cmp dword [ebp - 8], ebx
jbe 0x40d0f3
cmp dword [ebp - 0x7c], ebx
je 0x40d0f3
push ebx
push 0xa
call fcn.0040a2e0
mov eax, dword [ebp - 8]
xor edi, edi
inc edi
mov esi, 0x415a54
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.0040b989
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 0x40d38f
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x18]
call fcn.0040bd4f
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
cmp dword [ebp - 0x24], ebx
ja case.0x40d19a.22
jb 0x40d18b
cmp dword [ebp - 0x28], 0x40000000
ja case.0x40d19a.22
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff2
cmp eax, 0xb
ja case.0x40d19a.22
jmp dword [eax*4 + 0x40d4d4]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xe4]
mov byte [ebp - 0xe0], bl
call fcn.0040bc7f
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp dword [eax + 0x6c], ebx
jle 0x40d1dd
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.0040be32
inc esi
cmp esi, dword [ebx + 0x6c]
jl 0x40d1c2
lea ebx, [ebp - 0xe4]
call fcn.0040bbd8
xor ebx, ebx
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x28]
call fcn.0040a2e0
jmp 0x40d35b
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], 0x415a54
call fcn.0040c9e7
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xdc]
mov byte [ebp - 0xd8], bl
call fcn.0040bc7f
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x40d26a
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]
mov byte [edi + 0x1f], al
cmp al, bl
je 0x40d264
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
call fcn.0040bdf8
mov dword [edi + 8], eax
inc esi
cmp esi, dword [ebp - 8]
jb 0x40d240
lea ebx, [ebp - 0xdc]
call fcn.0040bbd8
lea ecx, [ebp - 0x64]
call fcn.0040f80e
jmp 0x40d1e8
mov ecx, dword [ebp - 8]
push esi
lea eax, [ebp - 0x50]
call fcn.0040c993
xor eax, eax
cmp dword [ebp - 0x48], ebx
jbe 0x40d2a6
mov ecx, dword [ebp - 0x44]
cmp byte [ecx + eax], bl
je 0x40d2a0
inc dword [ebp - 4]
inc eax
cmp eax, dword [ebp - 0x48]
jb 0x40d295
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xd4]
call fcn.0040b989
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x98]
call fcn.0040b989
jmp 0x40d1ea
lea eax, [ebp - 0xd4]
mov ecx, dword [ebp - 4]
push esi
call fcn.0040c993
jmp 0x40d1ea
lea eax, [ebp - 0x98]
jmp 0x40d2cd
mov eax, dword [ebp + 0xc]
add eax, 0xf0
push dword [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.0040ca22
jmp 0x40d1ea
mov eax, dword [ebp + 0xc]
add eax, 0x78
jmp 0x40d2eb
mov eax, dword [ebp + 0xc]
add eax, 0xa0
jmp 0x40d2eb
mov eax, dword [ebp + 0xc]
add eax, 0xc8
jmp 0x40d2eb
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x1c], ebx
jb 0x40d35b
ja 0x40d32a
cmp dword [ebp - 0x20], ebx
jbe 0x40d35b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
call fcn.0040bcc1
test al, al
jne 0x40d02e
add edi, 1
adc esi, ebx
cmp esi, dword [ebp - 0x1c]
jb 0x40d32a
ja 0x40d35b
cmp edi, dword [ebp - 0x20]
jb 0x40d32a
jmp 0x40d35b
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0040bd0f
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x130], bl
ja 0x40d36f
cmp byte [eax + 0x131], 2
jbe 0x40d38f
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 0x40d02e
cmp ecx, dword [ebp - 0x1c]
jne 0x40d02e
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x18]
call fcn.0040bd4f
mov dword [ebp - 0x28], eax
or eax, edx
mov dword [ebp - 0x24], edx
jne 0x40d159
xor edi, edi
xor eax, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], ebx
cmp dword [ebp - 4], ebx
jbe 0x40d3cb
mov ecx, dword [ebp - 0x8c]
cmp byte [ecx + eax], bl
je 0x40d3c5
inc dword [ebp + 8]
inc eax
cmp eax, dword [ebp - 4]
jb 0x40d3b7
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 8], ebx
jbe 0x40d472
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
mov byte [eax + 0x1c], cl
cmp cl, bl
je 0x40d422
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 0x40d44c
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 0x40d462
mov esi, dword [ebp + 0xc]
push dword [ebp - 4]
add esi, 0x118
call fcn.0040aa5e
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 8]
jb 0x40d3d9
lea ecx, [ebp - 0x98]
call fcn.0040f80e
lea ecx, [ebp - 0xd4]
call fcn.0040f80e
lea ecx, [ebp - 0x50]
call fcn.0040f80e
lea ecx, [ebp - 0x84]
call fcn.0040f80e
lea ecx, [ebp - 0xc0]
call fcn.0040f80e
lea ecx, [ebp - 0xac]
call fcn.0040f80e
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x415da8
call fcn.0040f83a
lea ecx, [ebp - 0x3c]
call fcn.0040f80e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8