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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d5d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov ecx, dword [ebp + 0x18]
push ebx
push esi
push edi
lea eax, [esp + 0x24]
push eax
call fcn.0040e480
push eax
mov dword [esp + 0x78], 0
call fcn.0040d100
mov dword [esp + 0x78], 0xffffffff
mov esi, dword [esp + 0x28]
add esp, 4
mov ebx, eax
mov dword [esp + 0x28], ebx
test esi, esi
je 0x40c0a0
push 0
lea ecx, [esp + 0x24]
call fcn.0047cdea
mov eax, dword [esi + 4]
test eax, eax
je 0x40c080
cmp eax, 0xffffffff
jae 0x40c080
dec eax
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
neg edi
sbb edi, edi
lea ecx, [esp + 0x20]
not edi
call fcn.0047ce12
and edi, esi
je 0x40c0a0
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call fcn.0040d280
mov esi, 1
mov dword [esp + 0x74], esi
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov byte [esp + 0x20], al
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov edi, dword [ebp + 0x20]
mov byte [esp + 0x74], 2
mov al, byte [edi]
cmp al, 0x2b
je 0x40c0f1
mov dword [esp + 0x18], 0
cmp al, 0x2d
jne 0x40c0f5
mov dword [esp + 0x18], esi
call fcn.0048fb17
mov ecx, dword [eax]
mov ebx, dword [ebp + 0x30]
mov dl, byte [ecx]
push ebx
push 0x65
push edi
mov byte [esp + 0x1c], dl
mov word [esp + 0x1d], 0x65
call fcn.0048f930
add esp, 0xc
mov esi, eax
movsx eax, byte [esp + 0x10]
push ebx
push eax
push edi
call fcn.0048f930
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40c135
mov dword [ebp + 0x2c], eax
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
mov eax, edx
cmp ecx, 0x10
jae 0x40c148
lea eax, [esp + 0x4c]
cmp byte [eax], 0x7f
je 0x40c27e
mov eax, edx
cmp ecx, 0x10
jae 0x40c15c
lea eax, [esp + 0x4c]
cmp byte [eax], 0
jle 0x40c27e
push ebx
push edi
lea ecx, [esp + 0x38]
call fcn.00415020
test esi, esi
jne 0x40c189
mov ecx, dword [ebp + 0x2c]
push 0x30
push ecx
lea ecx, [esp + 0x38]
call fcn.00414b80
mov ebx, dword [esp + 0x14]
jmp 0x40c1b5
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x40c1a3
mov edx, dword [ebp + 0x24]
push 0x30
push edx
lea ecx, [esp + 0x38]
call fcn.00414b80
mov dword [ebp + 0x24], ebx
mov eax, dword [ebp + 0x2c]
push 0x30
push eax
sub esi, edi
push esi
lea ecx, [esp + 0x3c]
call fcn.004152b0
push 0x30
test ebx, ebx
jne 0x40c1ca
mov ecx, dword [ebp + 0x24]
push ecx
lea ecx, [esp + 0x38]
call fcn.00414b80
jmp 0x40c1f4
mov edx, dword [ebp + 0x28]
sub ebx, edi
push edx
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x3c]
call fcn.004152b0
mov ecx, dword [ebp + 0x24]
push 0x30
push ecx
push ebx
lea ecx, [esp + 0x3c]
call fcn.004152b0
mov dword [ebp + 0x28], 0
mov ebx, dword [esp + 0x4c]
mov esi, 0x10
mov dword [ebp + 0x24], 0
cmp dword [esp + 0x60], esi
jae 0x40c20e
lea ebx, [esp + 0x4c]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], esi
jae 0x40c21c
lea eax, [esp + 0x30]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0048fb40
mov edi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x40c260
test al, al
jle 0x40c260
mov ecx, edi
sub ecx, dword [esp + 0x18]
movsx eax, al
cmp eax, ecx
jae 0x40c260
push 0
sub edi, eax
push 1
push edi
lea ecx, [esp + 0x3c]
call fcn.004152b0
cmp byte [ebx + 1], 0
jle 0x40c25a
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x40c232
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x44], esi
jae 0x40c26e
lea edi, [esp + 0x30]
mov edx, dword [esp + 0x40]
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], edx
mov ebx, edx
mov eax, dword [ebp + 0x24]
add eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x18]
add eax, dword [ebp + 0x2c]
mov ecx, dword [edx + 0x20]
add eax, ebx
cmp dword [edx + 0x24], 0
jl 0x40c2a7
jg 0x40c29b
test ecx, ecx
je 0x40c2a7
cmp ecx, eax
jbe 0x40c2a7
sub ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x40c2af
mov dword [esp + 0x14], 0
mov eax, dword [edx + 0x14]
mov esi, dword [ebp + 8]
and eax, 0x1c0
cmp eax, 0x40
je 0x40c355
cmp eax, 0x100
je 0x40c2f3
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0040d3a0
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
jmp 0x40c34a
cmp dword [esp + 0x18], 0
jbe 0x40c323
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 1
push edi
push eax
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call fcn.0040c920
mov ecx, dword [eax]
add esp, 0x18
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
inc edi
dec ebx
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x30], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.0040d3a0
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov dword [esp + 0x2c], 0
add esp, 0x18
movsx ecx, byte [esp + 0x10]
push ebx
push ecx
push edi
call fcn.0048f930
add esp, 0xc
test eax, eax
je 0x40c425
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x14]
sub eax, edi
push edx
mov edx, dword [ebp + 0x10]
lea ebx, [eax + 1]
lea eax, [ebx - 1]
push eax
push edi
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0040d2a0
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x24]
add esp, 0x1c
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 0x30
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.0040d3a0
mov edx, dword [eax]
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x18
call eax
mov edx, dword [ebp + 0x14]
push 1
mov byte [esp + 0x2c], al
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.0040d3a0
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x28]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push esi
call fcn.0040d3a0
mov ecx, dword [eax]
add edi, ebx
add esp, 0x30
sub dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 0x30]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
push ebx
push 0x65
push edi
call fcn.0048f930
add esp, 0xc
test eax, eax
je 0x40c4d4
mov edx, dword [ebp + 0x14]
sub eax, edi
lea ebx, [eax + 1]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebx - 1]
push ecx
push edi
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.0040d2a0
mov edx, dword [eax]
add esp, 0x1c
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x2c]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0040d3a0
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 4]
add esp, 0x18
test byte [ecx + 0x14], 4
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x2c], 0
mov ecx, 0x645e24
jne 0x40c4a9
mov ecx, 0x645e28
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.0040c920
mov edx, dword [eax]
add edi, ebx
add esp, 0x18
sub dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 0x30]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
push ebx
push edi
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.0040d2a0
mov edx, dword [eax]
add esp, 0x1c
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x2c]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0040d3a0
mov ecx, dword [eax]
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
push ecx
push edi
push esi
mov dword [ebp + 0x14], eax
call fcn.0040d3a0
mov esi, 0x10
add esp, 0x30
cmp dword [esp + 0x44], esi
jb 0x40c55a
mov eax, dword [esp + 0x30]
push eax
call fcn.0048f06d
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
cmp dword [esp + 0x60], esi
jb 0x40c57d
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0048f06d
add esp, 4
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret