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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x15c
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x1d34]
lea ebx, [esp + 0xca]
mov dword [esp + 0x68], edx
lea edi, [esp + 0x11b]
and ebx, 0xfffffff0
mov dword [esp + 0xac], ecx
and edi, 0xfffffff0
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*8 + 0x70fc]
mov dword [esp + 0x90], eax
mov eax, dword [edx + 0x1d40]
mov edx, dword [eax]
mov dword [esp + 0x13e], edx
mov edx, dword [eax + 4]
movzx eax, byte [eax + 8]
mov dword [esp + 0x142], edx
mov edx, dword [esp + 0x68]
mov byte [esp + 0x146], al
mov eax, dword [edx + 0x1d44]
mov edx, dword [eax]
mov dword [esp + 0x147], edx
mov edx, dword [eax + 4]
movzx eax, byte [eax + 8]
mov dword [esp + 0x14b], edx
mov edx, dword [esp + 0x68]
mov byte [esp + 0x14f], al
add edx, 0xca0
mov dword [esp + 0xa4], edx
mov dword [esp], edx
call fcn.00c64a00
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x178]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x48], edi
add edx, 0x812c
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x68]
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add edx, 0x718c
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x68]
mov edx, dword [edx + 0x1d2c]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 0x1d30]
mov edx, dword [edx + 0x1d34]
test edx, edx
jne 0xc5da17
mov edx, dword [esp + 0x64]
sar edx, 2
test edx, edx
jne 0xc5de28
imul eax, eax, 0x54
mov ecx, dword [esp + 0x8c]
mov dx, 0x4b0
sub ecx, eax
mov eax, ecx
mov ecx, dword [ecx]
cmp ecx, 2
je 0xc5d9dc
ja 0xc5de91
cmp ecx, 1
mov dx, 0x320
je 0xc5d9dc
xor edx, edx
test byte [esp + 0x64], 3
jne 0xc5de46
mov ebx, dword [esp + 0x8c]
mov eax, 0x78
mov ecx, dword [ebx - 0x54]
cmp ecx, 2
je 0xc5da0a
ja 0xc5de60
cmp ecx, 1
mov al, 0x50
je 0xc5da0a
xor eax, eax
add eax, edx
add eax, dword [esp + 0xa8]
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x147]
lea ebx, [esp + 0x13e]
mov edi, dword [esp + 0xa4]
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x3c], 0
movzx eax, byte [edx + 0x1150cb9]
mov dword [esp + 0x54], 0x7fffffff
mov dword [esp + 0x4c], 0
add ecx, eax
movzx eax, byte [edx + 0x1150ca0]
mov dword [esp + 0x6c], ecx
add ebx, eax
imul eax, edx, 0x34
mov edx, dword [esp + 0x68]
mov dword [esp + 0x70], ebx
lea edi, [edi + eax + 0xafc]
lea eax, [edx + eax + 0x744]
movsx edx, byte [ebx]
mov dword [esp + 0x38], eax
movsx eax, byte [ecx]
mov dword [esp + 0x34], edi
add eax, edx
mov dword [esp + 0x5c], eax
nop
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebx + ecx*4]
mov edx, dword [eax + 0x2c9b0]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x20]
mov eax, dword [eax]
add eax, dword [ecx + 0x24]
mov dword [esp], eax
call dword [edx + 0x2c]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 0x10
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [eax + 0x2ca6c]
mov edx, dword [esp + 0x38]
mov dword [esp + 8], 0x20
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call dword [ebp + 0x9394]
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], edi
mov dword [esp], ecx
call dword [ebp + 0x93a0]
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi]
movzx eax, byte [eax]
mov dword [esp + 0x24], ebx
test al, al
jle 0xc5dd72
mov edi, dword [0x1765b04]
movsx eax, al
xor ebx, ebx
mov edx, dword [0x1765b00]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], eax
add eax, 1
mov dword [esp + 0x28], eax
mov eax, 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edx
lea esi, [esi]
mov edx, dword [eax*4 + 0x114fb9c]
lea ecx, [ecx + ecx*2]
mov edi, dword [esp + 0x24]
movsx esi, word [edi + edx*2]
mov edx, dword [esp + 0x2c]
movsx edi, word [edx + esi*4]
movzx edx, byte [eax + 0x114fbef]
add eax, 1
lea edx, [edx + edx*8]
lea edx, [ecx + edx]
mov ecx, dword [esp + 0x30]
lea edx, [edi + edx*4 + 0x23c0]
add ebx, dword [ebp + edx*4 + 0xc]
add ebx, dword [ecx + esi*4]
cmp eax, dword [esp + 0x28]
movzx ecx, byte [edi + 0x114fbe0]
jne 0xc5db70
mov eax, dword [esp + 0x44]
mov edi, 1
cmp eax, 0xf
jg 0xc5dbe7
test eax, eax
setne dl
mov edi, edx
movzx eax, byte [eax + 0x114fbf0]
lea edx, [ecx + ecx*2]
lea eax, [eax + eax*8]
add eax, edx
shl eax, 4
add ebx, dword [ebp + eax + 0x8f38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x50]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x40]
add esi, ebx
mov dword [esp + 4], eax
mov eax, dword [edx + 4]
mov dword [esp], eax
call dword [ecx + 0x2ca60]
mov edx, eax
mov eax, dword [ebp + 0x20c8]
sar edx, 2
imul eax, esi
lea ecx, [eax + 0x80]
mov eax, dword [ebp + 0x20c4]
sar ecx, 8
imul eax, edx
add eax, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0xc5dce6
add dword [esp + 0x3c], 1
add dword [esp + 0x4c], 1
cmp dword [esp + 0x3c], 0xa
jne 0xc5da90
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov dword [edx + 0x30], ebx
mov ebx, dword [esp + 0x58]
mov edx, dword [eax + 0x2c9b0]
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x20]
mov eax, dword [eax]
add eax, dword [ecx + 0x24]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x10
call dword [edx]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x9c]
mov edx, eax
sar edx, 0x1f
add dword [esp + 0x80], eax
adc dword [esp + 0x84], edx
mov edx, dword [esp + 0x64]
cmp dword [esp + 0x84], edi
mov dword [ecx + edx*4 + 0x14], ebx
jle 0xc5dd81
add esp, 0x15c
mov eax, 0x7fffffff
pop ebx
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x70]
mov eax, edi
mov edi, dword [esp + 0x34]
mov byte [ecx], al
mov ecx, dword [esp + 0x6c]
mov byte [ecx], al
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x58]
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 0x10]
mov dword [ecx + 0x10], edi
mov edi, dword [eax + 0x20]
mov dword [ecx + 0x20], edi
mov edi, dword [esp + 0x34]
mov eax, dword [eax + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x48]
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov dword [ecx + 8], edi
mov edi, dword [eax + 0xc]
mov dword [ecx + 0xc], edi
mov edi, dword [eax + 0x10]
mov dword [ecx + 0x10], edi
mov edi, dword [eax + 0x14]
mov dword [ecx + 0x14], edi
mov edi, dword [eax + 0x18]
mov dword [ecx + 0x18], edi
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x1c], eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x74], ebx
jmp 0xc5dc3e
mov ecx, dword [esp + 0x5c]
xor edi, edi
xor ebx, ebx
xor eax, eax
jmp 0xc5dbce
jl 0xc5dd97
mov eax, dword [esp + 0x98]
cmp dword [esp + 0x80], eax
jae 0xc5dcd6
mov ebx, dword [esp + 0x88]
add dword [esp + 0x90], ebx
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
add dword [esp + 0x64], 1
add dword [esp + 0x94], edi
add dword [esp + 0xa0], ebx
cmp dword [esp + 0x64], 0x10
jne 0xc5d97e
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0xac]
mov edi, dword [esp + 0x170]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x174]
mov dword [ecx], ebx
mov ecx, dword [esp + 0x94]
add dword [edi], edx
mov edx, dword [esp + 0x68]
mov dword [eax], ecx
mov eax, ebx
imul eax, dword [edx + 0x20c8]
mov edx, ecx
mov ecx, dword [esp + 0x68]
sub eax, 0xffffff80
imul edx, dword [ecx + 0x20c4]
add esp, 0x15c
sar eax, 8
pop ebx
pop esi
add eax, edx
pop edi
pop ebp
ret
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x8c]
imul edx, dword [ecx + edi*4 + 4], 0x190
test byte [esp + 0x64], 3
je 0xc5d9e7
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x8c]
mov eax, dword [edi + ebx*4 + 0x10]
lea eax, [eax + eax*4]
shl eax, 3
jmp 0xc5da0a
cmp ecx, 3
mov eax, 0x28
je 0xc5da0a
cmp ecx, 4
jne 0xc5da08
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx + edi*4 - 0x34]
lea eax, [eax + eax*4]
shl eax, 3
jmp 0xc5da0a
cmp ecx, 3
mov edx, 0x190
je 0xc5d9dc
cmp ecx, 4
jne 0xc5d9da
mov ebx, dword [esp + 0x64]
imul edx, dword [eax + ebx*4 + 0x44], 0x190
jmp 0xc5d9dc