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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x100a23c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 0x40], edx
mov ecx, dword [ebx + 8]
push edi
mov dword [ebp - 0x58], ecx
cmp byte [esi + 0x67], 0
mov dword [ebp - 0x24], eax
je 0x1003c869
mov ecx, esi
call fcn.1003b670
mov eax, dword [ebp - 0x24]
mov edi, dword [0x100a28d8]
mov edx, dword [edi + 0x3f04]
mov dword [ebp - 0x50], edx
cmp byte [edx + 0xc8], 0
jne 0x1003c919
test eax, eax
je 0x1003c8b1
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x1c], eax
cmp dword [edi + 0x3f40], eax
jne 0x1003c8a0
mov dword [edi + 0x3f44], eax
cmp dword [edi + 0x3f84], eax
jne 0x1003c8ef
mov byte [edi + 0x3f88], 1
jmp 0x1003c8ef
mov ecx, dword [edx + 0xfc]
mov eax, dword [edx + 0x104]
xor edx, edx
push dword [eax + ecx*4 - 4]
mov ecx, dword [ebp - 0x40]
call fcn.100033e0
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [edi + 0x3f28], eax
jne 0x1003c8ef
push ecx
push dword [ebp - 0x40]
mov edx, 0xb
mov ecx, eax
call fcn.10021c00
mov eax, dword [ebp - 0x1c]
add esp, 8
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x1003c92e
cmp byte [ecx], 0
jne 0x1003c92e
xorps xmm0, xmm0
lea ecx, [ebp - 0x90]
push 0x18
push 0
mov edx, eax
movups xmmword [ebp - 0x90], xmm0
call fcn.10011530
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008ad82
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebx + 0xc]
test eax, 0x100000
je 0x1003c93f
xor ecx, ecx
mov dword [ebp - 0x58], ecx
jmp 0x1003c94b
test ecx, ecx
jne 0x1003c94d
or eax, 0x100000
mov dword [ebx + 0xc], eax
test ecx, ecx
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x64]
setne al
movzx eax, al
push eax
call fcn.1003d730
mov ecx, dword [ebp - 0x1c]
add esp, 4
test ecx, ecx
je 0x1003c984
xor edx, edx
cmp dword [esi], edx
jle 0x1003c984
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c], eax
cmp dword [eax], ecx
je 0x1003c989
inc edx
add eax, 0x2c
mov dword [ebp - 0x2c], eax
cmp edx, dword [esi]
jl 0x1003c975
xor eax, eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x15], 0
test eax, eax
jne 0x1003ca1e
mov dword [ebp - 0xb4], eax
xorps xmm0, xmm0
mov dword [ebp - 0xa0], eax
mov ecx, esi
mov dword [ebp - 0x94], eax
or eax, 0xffffffff
mov word [ebp - 0x96], ax
mov word [ebp - 0x98], ax
lea eax, [ebp - 0xbc]
push eax
movlpd qword [ebp - 0xbc], xmm0
movlpd qword [ebp - 0xa8], xmm0
mov dword [ebp - 0xac], 0xffffffff
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 0x9c], 0xffffffff
call fcn.1003e100
imul ecx, dword [esi], 0x2c
mov eax, dword [esi + 8]
movss xmm0, dword [ebp - 0x64]
add eax, 0xffffffd4
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 0x15], 1
add eax, ecx
mov dword [ebp - 0x2c], eax
mov dword [eax], edx
movss dword [eax + 0x18], xmm0
mov byte [esi + 0x69], 1
jmp 0x1003ca23
movss xmm0, dword [ebp - 0x64]
mov ecx, eax
mov dword [ebp - 0x54], 1
sub ecx, dword [esi + 8]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x2c]
mov word [esi + 0x6c], ax
movss dword [edx + 0x1c], xmm0
movzx ecx, word [esi + 0x6a]
lea eax, [ecx + 1]
mov word [esi + 0x6a], ax
mov word [edx + 0x24], cx
mov eax, dword [edi + 0x3ea0]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x4c], eax
inc ecx
mov eax, dword [esi + 0xc]
shr eax, 0x15
and eax, 0xffffff01
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x74], eax
mov eax, dword [edx + 0xc]
inc eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x15
and eax, 0xffffff01
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x4c]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [edx + 8], eax
test eax, eax
je 0x1003cab0
mov dword [edx + 0x20], 0xffffffff
jmp 0x1003cb99
mov ecx, dword [esi + 0x84]
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0x40]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003cac8
mov eax, dword [ebp - 0x40]
sub ecx, edx
inc ecx
add ecx, eax
je 0x1003cadd
sub ecx, eax
jmp 0x1003caeb
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003cae2
sub ecx, edx
mov eax, dword [esi + 0x84]
test eax, eax
mov edx, dword [ebp - 0x54]
cmovne edx, eax
mov dword [ebp - 0x44], ecx
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x28], edx
add edx, ecx
mov dword [ebp - 0x3c], edx
lea ecx, [esi + 0x84]
cmp edx, eax
jl 0x1003cb2a
add eax, eax
cmp edx, eax
cmovg eax, edx
push eax
call fcn.10022ab0
mov edx, dword [ebp - 0x3c]
lea ecx, [esi + 0x84]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x5c], eax
cmp edx, eax
jle 0x1003cb68
test eax, eax
je 0x1003cb47
cdq
sub eax, edx
mov edx, dword [ebp - 0x3c]
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x5c]
jmp 0x1003cb4c
mov ecx, 8
cmp ecx, edx
mov eax, edx
cmovg eax, ecx
lea ecx, [esi + 0x84]
push eax
call fcn.10022ab0
mov edx, dword [ebp - 0x3c]
lea ecx, [esi + 0x84]
push dword [ebp - 0x44]
mov dword [ecx], edx
mov eax, dword [ecx + 8]
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x40]
dec ecx
add eax, ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0x8c]
add esp, 0xc
mov ecx, dword [ebp - 0x28]
add eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
mov byte [eax + ecx - 1], 0
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x68], eax
jge 0x1003cbc6
test byte [esi + 0xc], 2
je 0x1003cbc6
cmp dword [esi + 0x18], 0
jne 0x1003cbc6
cmp ecx, eax
jge 0x1003cbb7
cmp dword [esi + 0x14], 0
jne 0x1003cbc6
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
test al, al
jne 0x1003cbcc
mov dword [esi + 0x18], ecx
jmp 0x1003cbcc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
test byte [ebx + 0xc], 2
je 0x1003cbde
cmp dword [esi + 0x14], ecx
je 0x1003cbde
test al, al
jne 0x1003cbde
mov dword [esi + 0x18], ecx
cmp dword [esi + 0x1c], ecx
mov eax, dword [ebp - 0x38]
sete dl
mov dword [ebp - 0x3c], edx
mov byte [ebp - 0x78], dl
mov edx, dword [ebp - 0x4c]
jne 0x1003cbf8
mov byte [esi + 0x68], 1
jmp 0x1003cc24
cmp dword [esi + 0x14], 0
jne 0x1003cc24
cmp eax, edx
jge 0x1003cc24
cmp dword [ebp - 0x24], 0
jne 0x1003cc24
cmp dword [esi], 1
jne 0x1003cc24
mov eax, dword [ebp - 0x3c]
test byte [esi + 0xc], 2
movzx eax, al
cmove eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x78], al
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x68], edx
mov edx, dword [ebp - 0x2c]
jge 0x1003cc75
cmp eax, dword [ebp - 0x4c]
jge 0x1003cc37
cmp byte [ebp - 0x15], 0
je 0x1003cc75
xorps xmm0, xmm0
mov edx, ecx
push 0x18
push 0
lea ecx, [ebp - 0x90]
movups xmmword [ebp - 0x90], xmm0
call fcn.10011530
add esp, 8
cmp byte [ebp - 0x34], 0
jne 0x1003c919
mov al, byte [ebp - 0x3c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008ad82
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [esi + 0x14], ecx
jne 0x1003cc83
mov eax, dword [edi + 0x3ea0]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x50]
movss xmm1, dword [edx + 0x18]
movss xmm0, dword [eax + 0x108]
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [eax + 0x10c]
mov eax, dword [edx + 4]
movss dword [ebp - 0x5c], xmm0
and eax, 0xc0
movss xmm0, dword [edx + 0x14]
mov edx, 4
mov dword [ebp - 0x44], eax
jne 0x1003cccf
subss xmm0, dword [esi + 0x48]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x44]
cvtdq2ps xmm0, xmm0
mov ecx, dword [ebp - 0x50]
xorps xmm2, xmm2
addss xmm0, dword [esi + 0x28]
movss dword [ebp - 0x28], xmm0
movss xmm5, dword [esi + edx + 0x28]
addss xmm5, xmm2
movaps xmm2, xmm0
addss xmm2, xmm1
movss dword [ebp - 0x70], xmm5
movss dword [ecx + 0x108], xmm0
movss dword [ecx + 0x10c], xmm5
movss xmm4, dword [ebp - 0x60]
movss xmm6, dword [0x1009ef88]
addss xmm4, xmm5
movss dword [ebp - 0x6c], xmm2
movss dword [ebp - 0x14], xmm0
movss dword [ebp - 0x10], xmm5
movss dword [ebp - 0xc], xmm2
movss dword [ebp - 0x60], xmm4
movss dword [ebp - 8], xmm4
test eax, eax
jne 0x1003cebe
movss xmm3, dword [esi + 0x58]
comiss xmm3, xmm0
movss xmm1, dword [esi + 0x5c]
ja 0x1003cd54
comiss xmm2, xmm1
jbe 0x1003cebe
mov ecx, dword [0x100a28d8]
movaps xmm2, xmm0
maxss xmm2, xmm3
mov byte [ebp - 0x15], 1
movaps xmm0, xmm5
movaps xmm5, xmm4
subss xmm0, xmm6
mov eax, dword [ecx + 0x3f04]
movss dword [ebp - 0xcc], xmm2
mov byte [eax + 0xc5], 1
mov eax, dword [ecx + 0x3f04]
mov dword [ebp - 0x80], eax
movss dword [ebp - 0xc8], xmm0
mov eax, dword [eax + 0x288]
mov dword [ebp - 0x7c], eax
movups xmm3, xmmword [eax + 0x60]
comiss xmm3, xmm2
movups xmmword [ebp - 0x90], xmm3
jbe 0x1003cdb9
movaps xmm2, xmm3
movss dword [ebp - 0xcc], xmm2
movss xmm3, dword [ebp - 0x8c]
comiss xmm3, xmm0
jbe 0x1003cdd1
movaps xmm0, xmm3
movss dword [ebp - 0xc8], xmm0
movss xmm3, dword [ebp - 0x88]
comiss xmm1, xmm3
jbe 0x1003cde1
movaps xmm1, xmm3
movss xmm3, dword [ebp - 0x84]
comiss xmm4, xmm3
jbe 0x1003cdf1
movaps xmm5, xmm3
mov edx, dword [eax + 0x3c]
lea ecx, [eax + 0x3c]
mov eax, dword [ecx + 4]
maxss xmm2, xmm1
mov dword [ebp - 0x44], ecx
maxss xmm0, xmm5
movss dword [ebp - 0xc4], xmm2
movss dword [ebp - 0xc0], xmm0
cmp edx, eax
jne 0x1003ce45
lea ecx, [edx + 1]
test eax, eax
je 0x1003ce2d
cdq
sub eax, edx
mov edx, dword [ebp - 0x44]
sar eax, 1
add eax, dword [edx + 4]
jmp 0x1003ce35
mov edx, dword [ebp - 0x44]
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.10022c60
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
movups xmm0, xmmword [ebp - 0xcc]
shl eax, 4
add eax, dword [ecx + 8]
movups xmmword [eax], xmm0
inc dword [ecx]
mov ecx, dword [ebp - 0x7c]
movups xmmword [ecx + 0x60], xmm0
call fcn.1002b0c0
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x288]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
add ecx, ecx
movss xmm2, dword [eax + ecx*8 - 4]
movss xmm0, dword [eax + ecx*8 - 0xc]
movss xmm1, dword [eax + ecx*8 - 8]
mov eax, dword [eax + ecx*8 - 0x10]
mov ecx, dword [ebp - 0x50]
mov dword [edx + 0x22c], eax
movss dword [edx + 0x230], xmm0
movss dword [edx + 0x234], xmm1
movss dword [edx + 0x238], xmm2
movss xmm4, dword [ebp - 0x60]
movss xmm2, dword [ebp - 0x6c]
movss xmm5, dword [ebp - 0x70]
jmp 0x1003cec2
mov byte [ebp - 0x15], 0
movss xmm0, dword [ecx + 0x120]
subss xmm4, xmm5
subss xmm2, dword [ebp - 0x28]
movss xmm1, dword [edi + 0x3894]
movss dword [ebp - 0x70], xmm0
movss xmm0, dword [ecx + 0x124]
lea ecx, [ebp - 0x64]
movss dword [ebp - 0x6c], xmm0
movss dword [ebp - 0x64], xmm2
movss dword [ebp - 0x60], xmm4
call fcn.100113d0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x14]
movss xmm0, dword [ebp - 0x70]
mov edx, dword [ebp - 0x1c]
push 0
movss dword [eax + 0x120], xmm0
movss xmm0, dword [ebp - 0x6c]
push 0
movss dword [eax + 0x124], xmm0
call fcn.10011530
add esp, 8
test al, al
jne 0x1003cf6f
cmp byte [ebp - 0x15], al
je 0x1003cf3c
call fcn.10009370
mov eax, dword [ebp - 0x50]
movss xmm0, dword [ebp - 0x38]
movss dword [eax + 0x108], xmm0
movss xmm0, dword [ebp - 0x5c]
movss dword [eax + 0x10c], xmm0
mov al, byte [ebp - 0x3c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008ad82
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x34]
movzx eax, al
inc eax
shl eax, 4
or eax, 0x1000
cmp byte [edi + 0x4290], 0
mov dword [ebp - 0x28], eax
je 0x1003cfd1
cmp dword [edi + 0x42b0], 0xffffffff
je 0x1003cfcc
lea ecx, [edi + 0x42b4]
mov eax, str._IMWINDOW
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003cfc0
test dl, dl
je 0x1003cfbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003cfc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003cfa0
xor eax, eax
jmp 0x1003cfc5
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x28]
je 0x1003cfd1
or eax, 0x200
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x2d]
push eax
call fcn.10037ce0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov byte [ebp - 0x47], al
test al, al
je 0x1003cffb
cmp byte [ebp - 0x34], 0
jne 0x1003cffb
mov dword [esi + 0x18], ecx
cmp byte [ebp - 0x1d], 0
je 0x1003d01f
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1003d01f
cmp dword [edi + 0x3f40], ecx
jne 0x1003d025
cmp byte [edi + 0x3f4c], 0
je 0x1003d01f
mov dword [edi + 0x3f78], eax
cmp dword [edi + 0x3f40], ecx
mov edx, dword [0x100a28d8]
je 0x1003d051
mov eax, dword [edx + 0x3fb0]
cmp dword [edx + 0x3f2c], eax
jne 0x1003d042
mov byte [edx + 0x3f34], 1
cmp dword [edx + 0x3f40], eax
jne 0x1003d051
mov byte [edx + 0x3f4d], 1
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1003d07b
mov eax, dword [eax + 0x388]
test eax, eax
je 0x1003d07b
cmp dword [eax + 0x18], 0
jne 0x1003d07b
test dword [eax + 0x10], 0x400
jne 0x1003d07b
cmp dword [eax + 0x24], 1
jne 0x1003d07b
mov al, 1
jmp 0x1003d07d
xor al, al
cmp byte [ebp - 0x1d], 0
je 0x1003d39b
xorps xmm3, xmm3
test al, al
je 0x1003d0b6
cmp byte [edx + 0xd60], 0
je 0x1003d0b6
movss xmm0, dword [edx + 0x36f8]
comiss xmm0, xmm3
setae al
test al, al
je 0x1003d0b6
mov ecx, dword [ebp - 0x24]
call fcn.100060f0
jmp 0x1003d39b
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x4c]
jl 0x1003d39b
cmp byte [edx + 0xd60], 0
je 0x1003d39b
movss xmm1, dword [edx + 0x30]
movss xmm0, dword [edx + 0x36f8]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
test al, al
je 0x1003d39b
mov edx, dword [ebp - 0x24]
xor eax, eax
xorps xmm5, xmm5
cmp byte [edi + 0x4290], al
jne 0x1003d199
test byte [esi + 0xc], 1
jne 0x1003d110
test edx, edx
je 0x1003d39b
movss xmm0, dword [edi + 0xb4]
comiss xmm3, xmm0
jbe 0x1003d154
movss xmm1, dword [edi + 0xd58]
movss xmm2, dword [ebp - 0x14]
comiss xmm2, xmm1
jbe 0x1003d154
push dword [edi + 0xd5c]
mov edx, dword [ebp - 0x2c]
movaps xmm5, xmm2
push dword [edi + 0xd58]
mov ecx, esi
subss xmm5, xmm1
call fcn.1003c210
add esp, 8
or eax, 0xffffffff
jmp 0x1003d190
comiss xmm0, xmm3
jbe 0x1003d199
movss xmm0, dword [edi + 0xd58]
movss xmm1, dword [ebp - 0xc]
comiss xmm0, xmm1
jbe 0x1003d199
push dword [edi + 0xd5c]
mov edx, dword [ebp - 0x2c]
movaps xmm5, xmm0
push dword [edi + 0xd58]
mov ecx, esi
subss xmm5, xmm1
call fcn.1003c210
add esp, 8
mov eax, 1
mov edx, dword [ebp - 0x24]
xorps xmm3, xmm3
mov ecx, dword [ebp - 0x1c]
test edx, edx
je 0x1003d39b
test byte [edx + 8], 4
jne 0x1003d39b
cmp byte [edi + 0x4290], 0
je 0x1003d1c0
cmp dword [edi + 0x42a8], ecx
je 0x1003d28b
movss xmm2, dword [edi + 0x3c98]
xor cl, cl
movss xmm1, dword [edi + 0x36d0]
movaps xmm0, xmm2
andps xmm1, xmmword [0x1009f3c0]
addss xmm0, xmm2
movaps xmm4, xmm2
mulss xmm4, dword [0x1009efb8]
subss xmm1, xmm0
mulss xmm1, dword [0x1009ef2c]
comiss xmm3, xmm1
ja 0x1003d20b
movaps xmm3, xmm2
mulss xmm3, dword [0x1009efd0]
minss xmm3, xmm1
movss xmm0, dword [edi + 0xd5c]
movss xmm1, dword [ebp - 0x10]
mulss xmm2, dword [0x1009efac]
subss xmm1, xmm0
movzx ecx, cl
subss xmm0, dword [ebp - 8]
addss xmm2, xmm3
maxss xmm1, xmm0
comiss xmm1, xmm2
cmovae ecx, dword [ebp - 0x54]
comiss xmm5, xmm4
mov dword [ebp - 0x28], ecx
jbe 0x1003d283
test eax, eax
jns 0x1003d260
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2e8ba2e9
sub ecx, dword [esi + 8]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x1003d27e
jle 0x1003d283
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2e8ba2e9
sub ecx, dword [esi + 8]
imul ecx
mov eax, dword [esi]
sar edx, 3
dec eax
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, eax
je 0x1003d28b
mov ecx, dword [ebp - 0x28]
test cl, cl
je 0x1003d39b
mov eax, dword [ebp - 0x24]
lea ecx, [edi + 0x534c]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa4], 0xffffffff
mov dword [ebp - 0xa0], 0x3f000000
mov byte [ebp - 0x9c], 0
mov dword [ebp - 0xb4], 2
call fcn.10022140
mov edx, dword [ebp - 0x24]
mov dword [edi + 0x3f14], edx
mov ecx, dword [edx + 0x84]
call fcn.100059b0
mov eax, dword [edi + 0x3f14]
movss xmm0, dword [edi + 0x3f70]
mov ecx, dword [0x100a28d8]
movss xmm1, dword [eax + 0x40]
movss xmm2, dword [eax + 0x44]
subss xmm1, dword [ebp - 0x14]
subss xmm2, dword [ebp - 0x10]
mov byte [edi + 0x3f4e], 1
subss xmm0, xmm1
movss dword [edi + 0x3f70], xmm0
movss xmm0, dword [edi + 0x3f74]
subss xmm0, xmm2
movss dword [edi + 0x3f74], xmm0
movaps xmm0, xmmword [0x1009f400]
mov dword [ecx + 0x3f54], 0xffffffff
mov dword [ecx + 0x3f58], 0xffffffff
movups xmmword [ecx + 0x3f5c], xmm0
mov dword [ecx + 0x3f6c], 0xffffffff
cmp byte [ecx + 0x4161], 0
mov word [ecx + 0x4178], 0
setne al
mov byte [ecx + 0x4160], al
cmp byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x288]
mov dword [ebp - 0x28], eax
jne 0x1003d3de
cmp byte [ebp - 0x2d], 0
jne 0x1003d3de
cmp byte [ebp - 0x3c], 0
je 0x1003d3cb
mov eax, dword [ebp - 0x74]
movzx eax, al
xor eax, 1
lea ecx, [eax*2 + 0x23]
jmp 0x1003d3e3
cmp byte [ebp - 0x74], 0
mov ecx, 0x24
mov edx, 0x21
cmovne ecx, edx
jmp 0x1003d3e3
mov ecx, 0x22
movss xmm1, dword [0x1009ef88]
call fcn.10003a80
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x14]
push eax
push dword [ebx + 0xc]
call fcn.1003d830
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push 1
call fcn.10004840
add esp, 0xc
mov ecx, 0x20
call fcn.10005b90
test al, al
je 0x1003d44f
mov ecx, dword [0x100a28d8]
movss xmm0, dword [ecx + 0x36ac]
ucomiss xmm0, dword [0x1009eee8]
lahf
test ah, 0x44
jnp 0x1003d441
cmp byte [ecx + 0x3697], 0
je 0x1003d44f
cmp byte [ebp - 0x34], 0
mov eax, dword [ebp - 0x1c]
jne 0x1003d452
mov dword [esi + 0x18], eax
jmp 0x1003d452
mov eax, dword [ebp - 0x1c]
test byte [esi + 0xc], 8
je 0x1003d45c
or dword [ebx + 0xc], 4
cmp dword [ebp - 0x58], 0
je 0x1003d4c4
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1003d46c
mov eax, dword [ecx + 4]
push eax
xor edx, edx
mov ecx, str.CLOSE
call fcn.100033e0
mov ecx, dword [0x100a28d8]
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [ecx + 0x3f40], eax
jne 0x1003d493
mov dword [ecx + 0x3f44], eax
cmp dword [ecx + 0x3f84], eax
jne 0x1003d4a2
mov byte [ecx + 0x3f88], 1
cmp dword [ecx + 0x3f28], eax
jne 0x1003d4c9
push ecx
push str.CLOSE
mov edx, 0xb
mov ecx, eax
call fcn.10021c00
mov eax, dword [ebp - 0x54]
add esp, 8
jmp 0x1003d4c9
xor eax, eax
mov dword [ebp - 0x54], eax
push dword [esi + 0x78]
lea ecx, [ebp - 0x46]
push dword [esi + 0x74]
lea edx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x45]
push ecx
push dword [ebp - 0x78]
mov ecx, dword [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x40]
push dword [ebx + 0xc]
call fcn.1003dc80
add esp, 0x24
cmp byte [ebp - 0x45], 0
je 0x1003d537
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x1003d537
mov ecx, dword [ebp - 0x2c]
mov byte [eax], 0
test byte [ecx + 4], 1
jne 0x1003d52d
mov byte [ecx + 0x28], 1
mov eax, dword [esi + 0x1c]
cmp eax, dword [ecx]
jne 0x1003d537
mov dword [ecx + 0xc], 0xffffffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
jmp 0x1003d537
mov eax, dword [ecx]
cmp dword [esi + 0x1c], eax
je 0x1003d537
mov dword [esi + 0x18], eax
cmp dword [ebp - 0x24], 0
je 0x1003d558
cmp byte [ebp - 0x2d], 0
jne 0x1003d54e
mov eax, dword [ebp - 0x54]
cmp dword [edi + 0x3f2c], eax
jne 0x1003d558
or dword [edi + 0x3fb8], 0x80
cmp byte [ebp - 0x15], 0
je 0x1003d563
call fcn.10009370
cmp byte [ebp - 0x46], 0
mov eax, dword [ebp - 0x50]
movss xmm0, dword [ebp - 0x38]
movss dword [eax + 0x108], xmm0
movss xmm0, dword [ebp - 0x5c]
movss dword [eax + 0x10c], xmm0
je 0x1003d709
mov eax, dword [ebp - 0x1c]
cmp dword [edi + 0x3f2c], eax
jne 0x1003d709
cmp byte [ebp - 0x1d], 0
jne 0x1003d709
movss xmm0, dword [edi + 0x3f3c]
comiss xmm0, dword [edi + 0x52fc]
jbe 0x1003d709
mov ecx, dword [0x100a28d8]
cmp byte [ecx + 0x415f], 0
mov edx, dword [ecx + 0x3f04]
je 0x1003d607
cmp byte [ecx + 0x415e], 0
jne 0x1003d607
test byte [ecx + 0x3fb4], 4
jne 0x1003d709
mov eax, dword [ecx + 0x4124]
mov ecx, dword [ecx + 0x3fb0]
cmp eax, ecx
jne 0x1003d709
test eax, eax
je 0x1003d709
cmp ecx, dword [edx + 4]
jmp 0x1003d6be
mov eax, dword [ecx + 0x3fb8]
test al, 1
je 0x1003d709
cmp dword [ecx + 0x3f08], edx
je 0x1003d625
test al, al
jns 0x1003d709
mov eax, dword [ecx + 0x3f40]
test eax, eax
je 0x1003d654
cmp eax, dword [ecx + 0x3fb0]
je 0x1003d654
cmp byte [ecx + 0x3f4d], 0
jne 0x1003d654
cmp eax, dword [edx + 0x84]
je 0x1003d654
cmp eax, dword [edx + 0x88]
jne 0x1003d709
mov eax, dword [ecx + 0x4120]
test eax, eax
je 0x1003d686
mov eax, dword [eax + 0x32c]
test eax, eax
je 0x1003d686
cmp byte [eax + 0xc4], 0
je 0x1003d686
cmp eax, dword [edx + 0x32c]
je 0x1003d686
test dword [eax + 8], 0xc000000
jne 0x1003d709
mov eax, dword [edx + 0x2c]
cmp eax, dword [ecx + 0x40ec]
je 0x1003d6a9
mov edi, dword [ecx + 0x3f14]
test edi, edi
je 0x1003d709
mov eax, dword [edx + 0x32c]
cmp eax, dword [edi + 0x32c]
jne 0x1003d709
test byte [ecx + 0x3fb4], 4
jne 0x1003d709
mov eax, dword [ecx + 0x3fb0]
cmp eax, dword [edx + 0x84]
jne 0x1003d6c9
cmp byte [edx + 0xc5], 0
jne 0x1003d709
test byte [esi + 0xc], 0x20
jne 0x1003d709
mov eax, dword [ebp - 0x2c]
test byte [eax + 4], 0x10
jne 0x1003d709
mov eax, dword [ebp - 0x40]
mov ecx, eax
cmp eax, 0xffffffff
jae 0x1003d6f8
mov dl, byte [ecx]
test dl, dl
je 0x1003d6f8
cmp dl, 0x23
jne 0x1003d6f2
cmp byte [ecx + 1], dl
je 0x1003d6f8
inc ecx
cmp ecx, 0xffffffff
jb 0x1003d6e2
push eax
sub ecx, eax
push ecx
push str._.s
call fcn.10012020
add esp, 0xc
mov eax, dword [ebp - 0x3c]
cmp byte [ebp - 0x34], 0
movzx ecx, byte [ebp - 0x47]
movzx eax, al
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1008ad82
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret