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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x274
mov eax, dword [0x1008ce00]
xor eax, esp
mov dword [esp + 0x270], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0
push edi
test ecx, ecx
je 0x1003c264
test eax, 0x200
mov edi, 0
cmovne ecx, edi
mov dword [esp + 0x20], ecx
xor edi, edi
mov byte [esp + 0x78], 0
xor ecx, ecx
mov dword [esp + 0x3c], edi
mov byte [esp + 0x177], 0
mov dword [esp + 0x10], ecx
test edx, edx
je 0x1003c342
test esi, esi
je 0x1003c342
cmp byte [esi], 0x40
jne 0x1003c2f8
mov al, byte [esi + 1]
test al, al
je 0x1003c2f8
cmp al, 0x40
je 0x1003c2f8
lea edi, [esp + 0x78]
mov al, 0x40
movsx eax, al
push eax
call fcn.1004e700
add esp, 4
test eax, eax
jne 0x1003c2cb
lea eax, [esp + 0x176]
cmp edi, eax
jae 0x1003c2cb
movzx eax, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov al, byte [esi]
test al, al
jne 0x1003c2a3
movsx eax, byte [esi]
mov byte [edi], 0
mov edi, dword [ebp + 0x18]
cmp ebx, edi
push eax
cmovl edi, ebx
mov dword [esp + 0x40], edi
call fcn.1004e700
add esp, 4
lea ecx, [esi + 1]
test eax, eax
cmove ecx, esi
mov esi, ecx
mov dword [esp + 0x38], esi
test esi, esi
je 0x1003c33c
push 0x40
push esi
call fcn.10047750
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1003c33c
lea eax, [esi + 1]
cmp ecx, eax
jbe 0x1003c33c
cmp byte [ecx - 1], 0x40
je 0x1003c33c
push 0xff
push ecx
lea eax, [esp + 0x17f]
push eax
call fcn.1003e180
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp ebx, eax
cmovl eax, ebx
mov dword [esp + 0x10], eax
mov ecx, eax
jmp 0x1003c33e
xor ecx, ecx
mov eax, dword [esp + 0x18]
lea edx, [ecx + edi]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1003c35d
test eax, 0x100
je 0x1003c35d
mov ecx, dword [ecx + 4]
mov dword [esp + 0x50], ecx
jmp 0x1003c365
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], 0
test esi, esi
je 0x1003c41c
mov ecx, esi
xor edi, edi
mov esi, eax
mov eax, ebx
sub eax, dword [esp + 0x50]
and esi, 0x80
sub eax, edx
xor ebx, ebx
movd xmm0, eax
mov eax, dword [esp + 0x40]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x58], xmm0
nop dword [eax]
push eax
push esi
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x60]
push eax
sub esp, 8
lea eax, [esp + 0x5c]
movsd qword [esp], xmm0
push 0
push eax
push ecx
call fcn.1003bf30
movsd xmm1, qword [esp + 0x8c]
add esp, 0x24
movd xmm0, ebx
mov ecx, eax
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x1003c3e1
cvttsd2si ebx, xmm1
mov al, byte [ecx]
inc edi
test al, al
je 0x1003c402
cmp al, 0x40
mov eax, dword [esp + 0x40]
jne 0x1003c3fa
cmp byte [ecx + 1], 0x40
je 0x1003c3fa
test eax, eax
jne 0x1003c402
movsd xmm0, qword [esp + 0x58]
jmp 0x1003c3a0
mov esi, dword [esp + 0x38]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x4c]
jmp 0x1003c422
xor eax, eax
mov dword [esp + 0x28], eax
test edi, edi
jne 0x1003c42c
cmp dword [esp + 0x10], edi
je 0x1003c46a
test eax, eax
je 0x1003c46a
test edi, edi
je 0x1003c449
mov ecx, dword [0x1008fc44]
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov edi, eax
imul edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1003c46e
mov ecx, dword [0x1008fc44]
mov edx, dword [ecx]
call dword [edx + 0xe4]
imul eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
jmp 0x1003c46e
mov eax, dword [esp + 0x10]
mov ecx, dword [0x1008fc44]
add eax, edi
mov dword [esp + 0x2c], eax
mov edx, dword [ecx]
call dword [edx + 0xe4]
mov ecx, dword [0x1008fc44]
imul eax, dword [esp + 0x28]
mov edx, dword [ecx]
mov dword [esp + 0x30], eax
call dword [edx + 0xe4]
mov ecx, dword [esp + 0x18]
mov edx, ecx
shr edx, 8
not edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
and edx, 1
mov dword [esp + 0x58], edx
test eax, eax
je 0x1003c4c0
test edx, edx
je 0x1003c4c0
mov edx, dword [eax + 8]
jmp 0x1003c4c2
xor edx, edx
mov eax, ecx
mov dword [esp + 0x48], 0
and eax, 2
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x4c], eax
je 0x1003c505
mov eax, dword [esp + 0x28]
mov esi, dword [ebp + 0x10]
dec eax
imul eax, dword [esp + 0x34]
sub esi, eax
mov eax, esi
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x38]
sub eax, edx
add eax, dword [ebp + 0x18]
jmp 0x1003c533
test cl, 1
je 0x1003c513
mov eax, dword [ebp + 0x10]
add eax, dword [esp + 0x34]
jmp 0x1003c533
mov ecx, dword [esp + 0x34]
imul ecx, dword [esp + 0x28]
mov eax, dword [ebp + 0x18]
sub eax, ecx
mov ecx, dword [esp + 0x18]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x34]
add eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x1003c6b5
cmp dword [esp + 0x58], 0
je 0x1003c5d0
test cl, 0x20
jne 0x1003c6b5
mov edx, dword [edx + 4]
mov eax, edx
test edx, edx
mov dword [esp + 0x30], 0
cmovle eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
test cl, 4
je 0x1003c578
mov ecx, edi
jmp 0x1003c59a
mov eax, ebx
sub eax, edx
test cl, 8
je 0x1003c58d
sub eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov ecx, eax
jmp 0x1003c59a
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
mov eax, dword [esp + 0x20]
push 0
push 0
push dword [eax + 8]
mov edx, dword [eax]
push dword [eax + 4]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x44]
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x34]
push eax
call dword [edx + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add eax, dword [ecx + 8]
jmp 0x1003c6b1
mov edx, dword [edx + 4]
mov eax, ecx
and eax, 4
test cl, 0x20
je 0x1003c61d
mov dword [esp + 0x3c], edx
test eax, eax
je 0x1003c5f1
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
add eax, edi
inc edx
jmp 0x1003c651
mov eax, ebx
sub eax, edx
test cl, 8
je 0x1003c604
mov edx, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
inc edx
jmp 0x1003c651
sub eax, dword [esp + 0x14]
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
add eax, edi
add eax, dword [esp + 0x14]
inc edx
jmp 0x1003c651
mov dword [esp + 0x48], edx
test eax, eax
je 0x1003c62d
mov eax, dword [ebp + 0xc]
dec eax
add eax, edi
jmp 0x1003c653
mov eax, ebx
sub eax, edx
test cl, 8
je 0x1003c640
sub eax, dword [esp + 0x10]
sub eax, dword [esp + 0x14]
jmp 0x1003c64d
sub eax, dword [esp + 0x14]
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp + 0xc]
dec edx
add eax, edx
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], edx
test cl, 1
jne 0x1003c68f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 8]
sub ecx, eax
cmp dword [esp + 0x4c], 0
je 0x1003c681
dec edx
add edx, ecx
jmp 0x1003c68f
lea eax, [ecx - 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
add edx, eax
mov ecx, dword [esp + 0x20]
push 0
push 0
push dword [ecx + 8]
mov eax, dword [ecx]
push dword [ecx + 4]
push edx
push dword [esp + 0x28]
call dword [eax + 0x18]
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x1003c84b
mov ecx, dword [0x1008fc44]
mov eax, dword [ecx]
call dword [eax + 0xe8]
mov ecx, dword [esp + 0x18]
mov edx, ecx
and edx, 4
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
sub edx, eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x28], 1
movsd xmm2, qword [0x10086540]
jle 0x1003c740
push dword [esp + 0x40]
and ecx, 0x80
lea eax, [esp + 0x6c]
push ecx
push eax
lea eax, [esp + 0x60]
push eax
mov eax, ebx
sub esp, 8
sub eax, dword [esp + 0x68]
sub eax, dword [esp + 0x44]
movd xmm0, eax
lea eax, [esp + 0x5c]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0
push eax
push esi
call fcn.1003bf30
movsd xmm2, qword [0x10086540]
add esp, 0x24
mov ecx, dword [esp + 0x18]
mov esi, eax
jmp 0x1003c745
mov esi, 0x10081102
movd xmm0, dword [esp + 0x24]
movsd xmm1, qword [esp + 0x68]
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x1003c76a
movaps xmm0, xmm1
addsd xmm0, xmm2
cvttsd2si eax, xmm0
mov dword [esp + 0x24], eax
cmp dword [esp + 0x30], 0
je 0x1003c777
mov ecx, dword [esp + 0x48]
jmp 0x1003c7b4
movaps xmm0, xmm1
addsd xmm0, xmm2
test cl, 8
je 0x1003c795
cvttsd2si eax, xmm0
mov ecx, ebx
sub ecx, eax
sub ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x10]
jmp 0x1003c7b6
cvttsd2si ecx, xmm0
mov eax, ebx
sub eax, ecx
sub eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x48]
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x48]
add ecx, edi
push dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push dword [esp + 0x5c]
mov dword [esp + 0x44], eax
push dword [esp + 0x50]
call dword [esp + 0x74]
mov edx, dword [0x1008fd3c]
add esp, 0x10
test edx, edx
je 0x1003c827
mov ecx, dword [esp + 0x44]
cmp edx, ecx
jb 0x1003c827
mov eax, dword [esp + 0x54]
add eax, ecx
cmp edx, eax
jae 0x1003c827
push dword [esp + 0x14]
sub edx, ecx
mov ecx, dword [0x1008fc44]
push edx
push dword [esp + 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xdc]
call eax
fstp qword [esp + 0x74]
cvttsd2si eax, qword [esp + 0x74]
add eax, dword [esp + 0x3c]
push eax
push 1
push 0x1006fb4c
call dword [esp + 0x74]
add esp, 0x10
mov al, byte [esi]
test al, al
je 0x1003c84b
cmp al, 0x40
jne 0x1003c836
cmp byte [esi + 1], al
jne 0x1003c84b
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
jmp 0x1003c6e2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x1003c8b7
cmp dword [esp + 0x58], 0
je 0x1003c8b7
test cl, 0x20
je 0x1003c8b7
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x24]
cmp esi, eax
cmovg eax, esi
mov dword [esp + 0x24], eax
test cl, 4
je 0x1003c87c
mov eax, edi
jmp 0x1003c896
mov eax, ebx
sub eax, esi
test cl, 8
je 0x1003c88b
sub eax, dword [esp + 0x10]
jmp 0x1003c896
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
add eax, edi
mov ecx, dword [esp + 0x20]
push 0
push 0
push dword [ecx + 8]
mov edx, dword [ecx]
push esi
push dword [esp + 0x2c]
mov esi, dword [ebp + 0xc]
add eax, esi
push eax
call dword [edx + 0x18]
mov ecx, dword [esp + 0x18]
jmp 0x1003c8ba
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x1003c925
test cl, 4
jne 0x1003c8e0
mov eax, ebx
sub eax, dword [esp + 0x24]
sub eax, dword [esp + 0x2c]
test cl, 8
je 0x1003c8d6
add esi, eax
jmp 0x1003c8e0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [ebp + 0xc]
cmp dword [esp + 0x4c], 0
je 0x1003c8f1
mov eax, dword [ebp + 0x10]
sub eax, edi
add eax, dword [ebp + 0x18]
jmp 0x1003c908
test cl, 1
je 0x1003c8fb
mov eax, dword [ebp + 0x10]
jmp 0x1003c908
mov eax, dword [ebp + 0x18]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0x10]
mov ecx, dword [0x1008fc44]
push dword [ecx + 0xc]
push edi
push edi
push eax
lea eax, [esp + 0x88]
push esi
push eax
call fcn.10044a60
add esp, 0x18
cmp dword [esp + 0x10], 0
je 0x1003c9a9
mov ecx, dword [esp + 0x18]
test cl, 4
je 0x1003c93d
mov ebx, dword [esp + 0x24]
add ebx, edi
jmp 0x1003c961
test cl, 8
je 0x1003c94a
mov edi, dword [esp + 0x10]
sub ebx, edi
jmp 0x1003c965
sub ebx, dword [esp + 0x24]
sub ebx, dword [esp + 0x2c]
mov eax, ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, edi
add ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 0xc]
add esi, ebx
test cl, 2
je 0x1003c979
mov ecx, dword [ebp + 0x10]
sub ecx, edi
add ecx, dword [ebp + 0x18]
jmp 0x1003c98d
test cl, 1
mov ecx, dword [ebp + 0x10]
jne 0x1003c98d
mov eax, dword [ebp + 0x18]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov eax, dword [0x1008fc44]
push dword [eax + 0xc]
lea eax, [esp + 0x17b]
push edi
push edi
push ecx
push esi
push eax
call fcn.10044a60
add esp, 0x18
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10045740
mov esp, ebp
pop ebp
ret