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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x1012d034]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
xor ecx, ecx
mov dword [esp + 0x20], esi
push edi
xor edi, edi
mov dword [esp + 0x44], ecx
test byte [esi + 0x19], 2
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x14], edi
je 0x1003eaa5
add eax, 4
mov byte [esp + 0x11], 1
mov dword [esp + 0x1c], eax
mov eax, dword [eax - 4]
mov dword [esp + 0x5c], eax
jmp 0x1003eaa9
mov byte [esp + 0x11], cl
movsx eax, byte [edx]
test eax, eax
je case.default.0x1003eda9
cmp eax, 0x25
je 0x1003eb14
mov edi, edx
mov dword [esp + 0x14], edi
nop
mov al, byte [edx + 1]
inc edx
test al, al
je 0x1003eacc
cmp al, 0x25
jne 0x1003eac0
mov eax, dword [esi + 0xc]
mov ecx, edx
sub ecx, edi
mov dword [esp + 0x54], edx
lea edx, [eax + ecx]
cmp edx, dword [esi + 0x10]
jb 0x1003eaee
push ecx
mov edx, edi
mov ecx, esi
call fcn.1003ff30
add esp, 4
jmp 0x1003eb07
test ecx, ecx
je 0x1003eb07
mov eax, dword [esi + 8]
push ecx
sub eax, ecx
mov dword [esi + 0xc], edx
add eax, edx
push edi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov edx, dword [esp + 0x54]
cmp byte [edx], 0
je case.default.0x1003eda9
movsx ecx, byte [edx + 1]
inc edx
test ecx, ecx
je 0x1003fd00
xor al, al
mov byte [esp + 0x3b], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x23], al
mov byte [esp + 0x12], al
mov byte [esp + 0x29], al
jmp 0x1003eb40
lea eax, [ecx - 0x20]
cmp eax, 0x10
ja case.0x1003eb4f.34
movzx eax, byte [eax + 0x1003fd74]
jmp dword [eax*4 + 0x1003fd54]
mov byte [esp + 0x29], 1
jmp 0x1003eb85
mov byte [esp + 0x12], 0x2b
jmp 0x1003eb85
mov byte [esp + 0x12], 0x20
jmp 0x1003eb85
mov byte [esp + 0x2a], 1
jmp 0x1003eb85
mov byte [esp + 0x2b], 1
jmp 0x1003eb85
mov byte [esp + 0x3b], 1
jmp 0x1003eb85
mov byte [esp + 0x23], 0x2c
movsx ecx, byte [edx + 1]
inc edx
test ecx, ecx
jne 0x1003eb40
mov dword [esp + 0x54], edx
cmp ecx, 0x2a
jne 0x1003ec21
cmp byte [esp + 0x11], 0
je 0x1003ebdb
mov esi, dword [esp + 0x5c]
mov edx, dword [esi + 4]
cmp dword [esi], edx
jg 0x1003ebc0
mov edx, dword [esp + 0x54]
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov eax, dword [esp + 0x48]
jmp 0x1003ebe9
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [esi + 4], eax
call fcn.1005bd10
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x54]
jmp 0x1003ebe9
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [eax - 4]
mov dword [esp + 0x18], eax
test eax, eax
jns 0x1003ec16
mov byte [esp + 0x29], 1
cmp eax, 0x80000001
jl 0x1003ec0e
movsx ecx, byte [edx + 1]
neg eax
inc edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], edx
jmp 0x1003ec60
mov dword [esp + 0x18], 0
movsx ecx, byte [edx + 1]
inc edx
mov dword [esp + 0x54], edx
jmp 0x1003ec60
xor eax, eax
cmp ecx, 0x30
jl 0x1003ec57
mov edi, eax
lea ebx, [ebx]
cmp ecx, 0x39
jg 0x1003ec47
lea edi, [edi + edi*4]
inc edx
lea edi, [edi - 0x18]
lea edi, [ecx + edi*2]
movsx ecx, byte [edx]
cmp ecx, 0x30
jge 0x1003ec30
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], edx
and eax, 0x7fffffff
mov dword [esp + 0x18], eax
cmp ecx, 0x2e
jne 0x1003ed13
movsx ecx, byte [edx + 1]
inc edx
mov dword [esp + 0x54], edx
cmp ecx, 0x2a
jne 0x1003ece4
cmp byte [esp + 0x11], 0
je 0x1003ecb9
mov esi, dword [esp + 0x5c]
mov edx, dword [esi + 4]
cmp dword [esi], edx
jg 0x1003ec9c
mov edx, dword [esp + 0x54]
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov esi, dword [esp + 0x48]
jmp 0x1003ecc7
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [esi + 4], eax
call fcn.1005bd10
mov dword [esp + 0x4c], edx
mov esi, eax
mov edx, dword [esp + 0x54]
jmp 0x1003ecc7
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov esi, dword [eax - 4]
movsx ecx, byte [edx + 1]
inc edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x54], edx
test esi, esi
jns 0x1003ed1a
cmp esi, 0x80000001
jl 0x1003ed13
neg esi
jmp 0x1003ed16
xor esi, esi
cmp ecx, 0x30
jl 0x1003ed0b
jmp 0x1003ecf0
cmp ecx, 0x39
jg 0x1003ed07
lea esi, [esi + esi*4]
inc edx
lea esi, [esi - 0x18]
lea esi, [ecx + esi*2]
movsx ecx, byte [edx]
cmp ecx, 0x30
jge 0x1003ecf0
mov dword [esp + 0x54], edx
and esi, 0x7fffffff
jmp 0x1003ed16
or esi, 0xffffffff
mov dword [esp + 0x2c], esi
cmp ecx, 0x6c
jne 0x1003ed42
movsx ecx, byte [edx + 1]
inc edx
mov byte [esp + 0x22], 1
mov dword [esp + 0x54], edx
cmp ecx, 0x6c
jne 0x1003ed47
movsx ecx, byte [edx + 1]
inc edx
mov byte [esp + 0x22], 2
mov dword [esp + 0x54], edx
jmp 0x1003ed47
mov byte [esp + 0x22], 0
xor eax, eax
mov dword [esp + 0x3c], 0x101074b0
mov byte [esp + 0x13], 0x11
mov edx, 0x101074b0
mov dword [esp + 0x40], eax
nop
movsx eax, byte [edx]
cmp ecx, eax
je 0x1003ed80
inc dword [esp + 0x40]
add edx, 6
cmp edx, 0x1010753a
jl 0x1003ed60
mov dl, byte [esp + 0x13]
mov ecx, dword [esp + 0x3c]
jmp 0x1003ed9d
mov eax, dword [esp + 0x40]
lea eax, [eax + eax*2]
mov dl, byte [eax*2 + 0x101074b3]
lea ecx, [eax*2 + 0x101074b0]
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x13], dl
movzx eax, dl
cmp eax, 0x10
ja case.default.0x1003eda9
jmp dword [eax*4 + 0x1003fd88]
mov al, 1
mov byte [esp + 0x23], 0
jmp 0x1003edc8
mov al, byte [esp + 0x22]
mov byte [esp + 0x23], 0
jmp 0x1003edc8
mov al, byte [esp + 0x22]
test byte [ecx + 2], 1
je 0x1003ee88
cmp byte [esp + 0x11], 0
je 0x1003ee19
mov edi, dword [esp + 0x5c]
mov edx, dword [edi + 4]
cmp dword [edi], edx
jg 0x1003ee06
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov cl, byte [esp + 0x12]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
jmp 0x1003ef13
mov eax, dword [edi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [edi + 4], eax
call fcn.1005bd10
jmp 0x1003ee4d
test al, al
je 0x1003ee3e
mov ecx, dword [esp + 0x1c]
cmp al, 2
jne 0x1003ee33
mov eax, dword [ecx]
add ecx, 8
mov dword [esp + 0x1c], ecx
mov edx, dword [ecx - 4]
jmp 0x1003ee4d
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x1c], ecx
jmp 0x1003ee4c
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [eax - 4]
cdq
test edx, edx
jg 0x1003edf5
jl 0x1003ee57
test eax, eax
jae 0x1003edf5
test eax, eax
jne 0x1003ee72
cmp edx, 0x80000000
jne 0x1003ee72
mov dword [esp + 0x30], edx
mov cl, 0x2d
mov dword [esp + 0x14], eax
jmp 0x1003ef0f
neg eax
mov cl, 0x2d
mov dword [esp + 0x14], eax
adc edx, 0
neg edx
mov dword [esp + 0x30], edx
jmp 0x1003ef0f
cmp byte [esp + 0x11], 0
je 0x1003eed0
mov edi, dword [esp + 0x5c]
mov edx, dword [edi + 4]
cmp dword [edi], edx
jg 0x1003eeb5
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], eax
jmp 0x1003ef0d
mov eax, dword [edi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [edi + 4], eax
call fcn.1005bd10
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], eax
jmp 0x1003ef0d
test al, al
je 0x1003eef5
mov edi, dword [esp + 0x1c]
cmp al, 2
jne 0x1003eeea
mov eax, dword [edi]
add edi, 8
mov dword [esp + 0x1c], edi
mov edx, dword [edi - 4]
jmp 0x1003ef05
mov eax, dword [edi]
add edi, 4
mov dword [esp + 0x1c], edi
jmp 0x1003ef03
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [eax - 4]
xor edx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
xor cl, cl
mov byte [esp + 0x12], cl
or eax, edx
jne 0x1003ef1b
mov byte [esp + 0x2a], al
mov al, byte [esp + 0x3b]
test al, al
je 0x1003ef39
xor eax, eax
test cl, cl
mov ecx, dword [esp + 0x18]
setne al
sub ecx, eax
cmp esi, ecx
cmovl esi, ecx
mov dword [esp + 0x2c], esi
cmp esi, 0x25
jge 0x1003ef51
mov edi, 0x46
lea eax, [esp + 0x78]
mov dword [esp + 0x58], edi
mov dword [esp + 0x40], eax
jmp 0x1003efa5
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
mov edi, eax
mov ecx, edx
mov eax, esi
cdq
add edi, eax
adc ecx, edx
add edi, 0xa
mov eax, edi
mov dword [esp + 0x58], edi
adc ecx, 0
or eax, ecx
je 0x1003ef8d
push ecx
push edi
call fcn.1003de10
add esp, 8
mov dword [esp + 0x44], eax
mov ecx, eax
jmp 0x1003ef93
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov eax, ecx
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x1003fcdc
mov edx, dword [esp + 0x30]
dec edi
add edi, eax
cmp byte [esp + 0x13], 0xf
jne 0x1003f00a
push 0
push 0xa
push edx
push dword [esp + 0x20]
call fcn.100ecf50
mov dword [esp + 0x60], eax
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x14]
add ecx, ecx
sub eax, ecx
mov dword [esp + 0x70], eax
cmp eax, 4
jge 0x1003efec
push 0
push 0xa
push edx
push dword [esp + 0x6c]
call fcn.100ed060
cmp eax, 1
jne 0x1003eff0
test edx, edx
jne 0x1003eff0
xor ecx, ecx
jmp 0x1003eff4
mov ecx, dword [esp + 0x70]
mov al, byte [ecx*2 + 0x10109e49]
mov byte [edi - 1], al
sub edi, 2
mov al, byte [ecx*2 + str.thstndrd]
mov byte [edi], al
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
movzx eax, byte [ecx + 4]
add eax, 0x1010a000
mov dword [esp + 0x48], eax
movzx eax, byte [ecx + 1]
cdq
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], eax
push eax
push ecx
push edx
push esi
dec edi
call fcn.100ecfc0
mov dword [esp + 0x34], ebx
mov esi, eax
mov eax, dword [esp + 0x48]
mov al, byte [eax + ecx]
mov ecx, dword [esp + 0x60]
mov byte [edi], al
mov eax, dword [esp + 0x70]
test edx, edx
ja 0x1003f034
jb 0x1003f05f
test esi, esi
jne 0x1003f034
mov edx, dword [esp + 0x40]
mov eax, edx
mov ecx, dword [esp + 0x58]
sub eax, edi
mov esi, dword [esp + 0x2c]
dec eax
add eax, ecx
mov dword [esp + 0x14], edi
cmp esi, eax
jle 0x1003f08b
sub esi, eax
add eax, esi
mov edi, edi
dec edi
mov byte [edi], 0x30
dec esi
jne 0x1003f080
mov dword [esp + 0x14], edi
cmp byte [esp + 0x23], 0
je 0x1003f0d3
dec eax
mov ecx, 3
cdq
idiv ecx
xor ecx, ecx
mov esi, eax
inc edx
sub edi, esi
mov dword [esp + 0x14], edi
test esi, esi
jle 0x1003f0cf
lea ebx, [ebx]
lea eax, [esi + ecx]
mov al, byte [eax + edi]
mov byte [ecx + edi], al
dec edx
jne 0x1003f0ca
mov al, byte [esp + 0x23]
inc ecx
dec esi
mov edx, 3
mov byte [ecx + edi], al
inc ecx
test esi, esi
jg 0x1003f0b0
mov edx, dword [esp + 0x40]
mov cl, byte [esp + 0x12]
test cl, cl
je 0x1003f0e2
dec edi
mov dword [esp + 0x14], edi
mov byte [edi], cl
cmp byte [esp + 0x2a], 0
je 0x1003f112
mov eax, dword [esp + 0x3c]
mov al, byte [eax + 5]
test al, al
je 0x1003f112
movzx eax, al
add eax, 0x10109e54
mov cl, byte [eax]
test cl, cl
je 0x1003f112
dec edi
lea eax, [eax + 1]
mov byte [edi], cl
mov cl, byte [eax]
test cl, cl
jne 0x1003f102
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x58]
sub edx, edi
dec esi
add esi, edx
mov eax, dword [esp + 0x18]
sub eax, esi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x1003fbc4
cmp byte [esp + 0x29], 0
jne 0x1003fb26
mov dword [esp + 0x60], eax
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
cdq
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
adc ecx, edx
mov eax, dword [eax + 0x10]
js 0x1003fb08
jg 0x1003f16d
cmp dword [esp + 0x58], eax
jb 0x1003fb08
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
call fcn.1003fdd0
mov edx, eax
test edx, edx
jle 0x1003fb26
jmp 0x1003fb0c
cmp byte [esp + 0x11], 0
je 0x1003f1a9
mov ecx, dword [esp + 0x5c]
call fcn.1003e980
mov dl, byte [esp + 0x13]
movapd xmm2, xmm0
movsd qword [esp + 0x48], xmm0
jmp 0x1003f1bf
mov eax, dword [esp + 0x1c]
add eax, 8
mov dword [esp + 0x1c], eax
movsd xmm2, qword [eax - 8]
movsd qword [esp + 0x48], xmm2
test esi, esi
mov eax, 6
xorps xmm3, xmm3
cmovs esi, eax
comisd xmm3, xmm2
mov dword [esp + 0x2c], esi
jbe 0x1003f1ec
xorpd xmm2, xmmword [0x1011bab0]
mov dh, 0x2d
movsd qword [esp + 0x48], xmm2
mov byte [esp + 0x12], dh
jmp 0x1003f1f0
mov dh, byte [esp + 0x12]
cmp dl, 3
jne 0x1003f1fe
test esi, esi
jle 0x1003f1fe
dec esi
mov dword [esp + 0x2c], esi
movsd xmm1, qword [0x1011b930]
and esi, 0xfff
movsd xmm4, qword [0x1011b928]
cmp esi, 8
jl 0x1003f253
lea ecx, [esi - 8]
shr ecx, 3
inc ecx
mov eax, ecx
neg eax
lea esi, [esi + eax*8]
jmp 0x1003f230
mulsd xmm1, xmm4
mulsd xmm1, xmm4
mulsd xmm1, xmm4
mulsd xmm1, xmm4
mulsd xmm1, xmm4
mulsd xmm1, xmm4
mulsd xmm1, xmm4
mulsd xmm1, xmm4
dec ecx
jne 0x1003f230
test esi, esi
jle 0x1003f260
dec esi
mulsd xmm1, xmm4
test esi, esi
jg 0x1003f257
cmp dl, 1
jne 0x1003f273
movapd xmm0, xmm1
addsd xmm2, xmm0
movsd qword [esp + 0x48], xmm2
movsd qword [esp + 0x60], xmm2
xor ecx, ecx
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x70], xmm0
movsd xmm0, qword [esp + 0x60]
ucomisd xmm0, qword [esp + 0x70]
mov dword [esp + 0x30], ecx
lahf
test ah, 0x44
jnp 0x1003f2ae
mov edi, 0x1011671c
lea esi, [ecx + 3]
mov dword [esp + 0x14], edi
jmp 0x1003f11b
comisd xmm2, xmm3
jbe 0x1003f3e0
movsd xmm5, qword [0x1011ba10]
comisd xmm2, xmm5
movsd xmm6, qword [0x1011b938]
movapd xmm3, xmm6
jb 0x1003f2f3
cmp ecx, 0x15e
jg 0x1003f2ef
mulsd xmm3, xmm5
add ecx, 0x64
movapd xmm0, xmm3
mulsd xmm0, xmm5
comisd xmm2, xmm0
jae 0x1003f2d2
mov dword [esp + 0x30], ecx
movsd xmm5, qword [0x1011b9d8]
movapd xmm0, xmm3
mulsd xmm0, xmm5
comisd xmm2, xmm0
jb 0x1003f32d
lea esp, [esp]
cmp ecx, 0x15e
jg 0x1003f329
movapd xmm3, xmm0
add ecx, 0xa
mulsd xmm0, xmm5
comisd xmm2, xmm0
jae 0x1003f310
mov dword [esp + 0x30], ecx
movsd xmm5, qword [0x1011b948]
movapd xmm0, xmm3
mulsd xmm0, xmm5
comisd xmm2, xmm0
jb 0x1003f35e
cmp ecx, 0x15e
jg 0x1003f35a
movapd xmm3, xmm0
inc ecx
mulsd xmm0, xmm5
comisd xmm2, xmm0
jae 0x1003f343
mov dword [esp + 0x30], ecx
divsd xmm2, xmm3
movsd xmm0, qword [0x1011b918]
comisd xmm0, xmm2
movsd qword [esp + 0x48], xmm2
jbe 0x1003f397
movsd xmm3, qword [0x1011b9b0]
mov edi, edi
mulsd xmm2, xmm3
sub ecx, 8
comisd xmm0, xmm2
ja 0x1003f380
mov dword [esp + 0x30], ecx
movsd qword [esp + 0x48], xmm2
comisd xmm6, xmm2
jbe 0x1003f3b5
lea ecx, [ecx]
mulsd xmm2, xmm5
dec ecx
comisd xmm6, xmm2
ja 0x1003f3a0
mov dword [esp + 0x30], ecx
movsd qword [esp + 0x48], xmm2
cmp ecx, 0x15e
jle 0x1003f3e8
xor eax, eax
mov byte [esp + 0x78], dh
test dh, dh
lea edi, [esp + 0x78]
mov dword [esp + 0x14], edi
setne al
mov dword [esp + eax + 0x78], 0x666e49
lea esi, [eax + 3]
jmp 0x1003f11b
movsd xmm5, qword [0x1011b948]
lea esi, [esp + 0x78]
cmp dl, 1
je 0x1003f410
addsd xmm2, xmm1
comisd xmm2, xmm5
movsd qword [esp + 0x48], xmm2
jb 0x1003f410
mulsd xmm2, xmm4
inc ecx
mov dword [esp + 0x30], ecx
movsd qword [esp + 0x48], xmm2
cmp dl, 3
jne 0x1003f4a3
cmp byte [esp + 0x2a], 0
sete byte [esp + 0x23]
cmp ecx, 0xfffffffc
jl 0x1003f496
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jg 0x1003f496
sub eax, ecx
mov byte [esp + 0x13], 1
mov dword [esp + 0x2c], eax
mov edx, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
xor eax, eax
test edx, edx
cmovg eax, edx
cdq
mov edi, eax
mov dword [esp + 0x14], edx
mov eax, ecx
cdq
add edi, eax
mov eax, dword [esp + 0x18]
adc dword [esp + 0x14], edx
cdq
add edi, eax
mov eax, dword [esp + 0x14]
adc eax, edx
js 0x1003f4c8
jg 0x1003f472
cmp edi, 0x37
jbe 0x1003f4c8
add edi, 0xf
adc eax, 0
mov dword [esp + 0x14], eax
mov eax, edi
mov edx, dword [esp + 0x14]
or eax, edx
je 0x1003f4b8
push edx
push edi
call fcn.1003de10
mov ecx, dword [esp + 0x34]
add esp, 8
jmp 0x1003f4ba
xor edx, edx
mov byte [esp + 0x13], 2
mov dword [esp + 0x40], edx
jmp 0x1003f441
mov al, byte [esp + 0x2b]
mov byte [esp + 0x23], al
cmp dl, 2
jne 0x1003f43b
xor edx, edx
mov dword [esp + 0x40], edx
jmp 0x1003f441
xor eax, eax
mov dword [esp + 0x44], eax
mov esi, eax
test eax, eax
je 0x1003fcdc
movzx eax, byte [esp + 0x2b]
test ecx, ecx
mov edi, esi
mov dword [esp + 0x14], edi
lea eax, [eax + eax*4]
lea edx, [eax*2 + 0x10]
setg al
or al, byte [esp + 0x2b]
or al, byte [esp + 0x2a]
mov byte [esp + 0x22], al
mov al, byte [esp + 0x12]
mov dword [esp + 0x60], edx
test al, al
je 0x1003f4fd
mov byte [esi], al
inc esi
mov eax, dword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
movsd xmm2, qword [0x1011b948]
test eax, eax
jns 0x1003f520
mov byte [esi], 0x30
inc esi
jmp 0x1003f551
test edx, edx
jg 0x1003f528
mov al, 0x30
jmp 0x1003f53f
cvttsd2si eax, xmm1
dec edx
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, xmm2
mov byte [esi], al
inc esi
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jns 0x1003f520
mov dword [esp + 0x60], edx
cmp byte [esp + 0x22], 0
je 0x1003f55c
mov byte [esi], 0x2e
inc esi
inc eax
jns 0x1003f58c
neg eax
mov edi, esi
mov ecx, eax
mov dword [esp + 0x40], eax
mov edx, ecx
mov eax, 0x30303030
shr ecx, 2
add esi, edx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x60]
test ecx, ecx
jle 0x1003f5b7
dec ecx
test edx, edx
jg 0x1003f599
mov al, 0x30
jmp 0x1003f5b0
cvttsd2si eax, xmm1
dec edx
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, xmm2
mov byte [esi], al
inc esi
test ecx, ecx
jg 0x1003f590
cmp byte [esp + 0x23], 0
je 0x1003f5f4
cmp byte [esp + 0x22], 0
je 0x1003f5f4
cmp byte [esi - 1], 0x30
lea eax, [esi - 1]
jne 0x1003f5dd
mov edi, edi
mov esi, eax
lea eax, [esi - 1]
mov byte [esi], 0
cmp byte [eax], 0x30
je 0x1003f5d0
cmp byte [esi - 1], 0x2e
jne 0x1003f5f4
cmp byte [esp + 0x2b], 0
je 0x1003f5f0
mov byte [esi], 0x30
inc esi
jmp 0x1003f5f4
dec esi
mov byte [esi], 0
cmp byte [esp + 0x13], 2
jne 0x1003f686
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
movzx eax, byte [eax + 4]
mov al, byte [eax + 0x1010a000]
mov byte [esi], al
test ecx, ecx
jns 0x1003f626
mov byte [esi + 1], 0x2d
add esi, 2
neg ecx
mov dword [esp + 0x30], ecx
jmp 0x1003f62d
mov byte [esi + 1], 0x2b
add esi, 2
cmp ecx, 0x64
jl 0x1003f657
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov al, cl
add al, 0x30
mov byte [esi], al
inc esi
imul eax, ecx, 0xffffff9c
mov ecx, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x30], ecx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov al, cl
add al, 0x30
mov byte [esi], al
mov al, cl
shl cl, 2
add al, cl
mov ecx, dword [esp + 0x30]
add al, al
sub cl, al
add cl, 0x30
mov byte [esi + 1], cl
add esi, 2
mov al, byte [esp + 0x3b]
mov byte [esi], 0
sub esi, edi
test al, al
je 0x1003f11b
cmp byte [esp + 0x29], 0
jne 0x1003f11b
mov eax, dword [esp + 0x18]
cmp esi, eax
jge 0x1003f11b
mov edx, eax
mov ecx, eax
sub edx, esi
cmp eax, edx
jl 0x1003f6cb
mov esi, edi
sub esi, edx
lea esp, [esp]
mov al, byte [esi + ecx]
mov byte [ecx + edi], al
dec ecx
cmp ecx, edx
jge 0x1003f6c0
mov cl, byte [esp + 0x12]
xor eax, eax
test cl, cl
setne al
test edx, edx
je 0x1003f6f3
add edi, eax
mov ecx, edx
shr ecx, 2
mov eax, 0x30303030
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, eax
jmp 0x1003f11f
cmp byte [esp + 0x11], 0
jne 0x1003f71c
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov ecx, dword [eax - 4]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
xor esi, esi
xor eax, eax
jmp 0x1003f11f
lea edi, [esp + 0x78]
mov byte [esp + 0x78], 0x25
mov dword [esp + 0x14], edi
mov esi, 1
jmp 0x1003f11b
cmp byte [esp + 0x11], 0
je 0x1003f75f
mov ecx, dword [esp + 0x5c]
call fcn.1003ea00
test eax, eax
je 0x1003f755
movsx eax, byte [eax]
jmp 0x1003f76d
mov dword [esp + 0x3c], 0
jmp 0x1003f771
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [eax - 4]
mov dword [esp + 0x3c], eax
cmp esi, 1
jle 0x1003f7bf
mov edi, dword [esp + 0x18]
mov eax, 1
sub eax, esi
add edi, eax
mov dword [esp + 0x18], edi
cmp edi, 1
jle 0x1003f7ac
cmp byte [esp + 0x29], 0
jne 0x1003f7ac
mov ecx, dword [esp + 0x24]
lea edx, [edi - 1]
push 0x20
call fcn.1003fee0
add esp, 4
mov dword [esp + 0x18], 0
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
lea edx, [esi - 1]
call fcn.1003fee0
add esp, 4
mov eax, dword [esp + 0x3c]
lea edi, [esp + 0x78]
mov esi, 1
mov byte [esp + 0x78], al
mov dword [esp + 0x14], edi
jmp 0x1003f11b
cmp byte [esp + 0x11], 0
je 0x1003f7f3
mov ecx, dword [esp + 0x5c]
call fcn.1003ea00
mov edi, eax
mov dword [esp + 0x14], eax
mov dl, 5
jmp 0x1003f805
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov edi, dword [eax - 4]
mov dword [esp + 0x14], edi
test edi, edi
jne 0x1003f814
mov edi, 0x10116048
mov dword [esp + 0x14], edi
jmp 0x1003f822
mov eax, dword [esp + 0x44]
cmp dl, 6
cmove eax, edi
mov dword [esp + 0x44], eax
test esi, esi
js 0x1003f848
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x1003f11b
cmp byte [esi + edi], 0
je 0x1003f11b
inc esi
cmp esi, eax
jl 0x1003f834
jmp 0x1003f11b
test edi, edi
jne 0x1003f853
xor esi, esi
jmp 0x1003f11b
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003f858
sub esi, ecx
and esi, 0x3fffffff
jmp 0x1003f11b
cmp dl, 0xe
mov eax, 0x27
mov ecx, 0x22
cmove eax, ecx
cmp byte [esp + 0x11], 0
mov dword [esp + 0x3c], eax
je 0x1003f8ed
mov edi, dword [esp + 0x5c]
mov edx, dword [edi + 4]
cmp dword [edi], edx
jg 0x1003f89a
mov dl, byte [esp + 0x13]
xor eax, eax
jmp 0x1003f8fb
mov eax, dword [edi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [edi + 4], eax
test ecx, ecx
jne 0x1003f8b2
mov dl, byte [esp + 0x13]
xor eax, eax
jmp 0x1003f8fb
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x1003f8d3
cmp byte [ecx + 0xa], 1
jne 0x1003f8d3
mov eax, dword [ecx + 0x10]
mov dl, byte [esp + 0x13]
jmp 0x1003f8fb
test dl, 1
je 0x1003f8e0
mov dl, byte [esp + 0x13]
xor eax, eax
jmp 0x1003f8fb
mov dl, 1
call fcn.1005c710
mov dl, byte [esp + 0x13]
jmp 0x1003f8fb
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [eax - 4]
xor ecx, ecx
mov dword [esp + 0x30], eax
test eax, eax
sete cl
mov dword [esp + 0x48], ecx
test ecx, ecx
je 0x1003f922
cmp dl, 0xa
mov eax, str.NULL
mov ecx, str._NULL_
cmovne eax, ecx
mov dword [esp + 0x30], eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x60], edx
test esi, esi
je 0x1003f94a
mov edi, edi
mov al, byte [edx + eax]
test al, al
je 0x1003f946
cmp al, byte [esp + 0x3c]
jne 0x1003f93e
inc ecx
mov eax, dword [esp + 0x30]
inc edx
dec esi
jne 0x1003f930
mov dword [esp + 0x60], edx
cmp dword [esp + 0x48], 0
jne 0x1003f960
cmp byte [esp + 0x13], 0xa
mov dword [esp + 0x58], 1
je 0x1003f968
mov dword [esp + 0x58], 0
lea eax, [edx + 3]
add eax, ecx
cmp eax, 0x46
jle 0x1003f9f7
cdq
mov esi, eax
mov ecx, esi
or ecx, edx
je 0x1003f9d9
test edx, edx
ja 0x1003f9d9
jb 0x1003f98d
cmp esi, 0x7fffff00
jae 0x1003f9d9
cmp dword [0x1012dce8], 0
je 0x1003f9cd
mov eax, dword [0x101318a0]
test eax, eax
je 0x1003f9a9
push eax
call dword [0x1012dd40]
add esp, 4
lea edx, [esp + 0x6c]
mov ecx, esi
call fcn.1003dd20
mov eax, dword [0x101318a0]
test eax, eax
je 0x1003f9c7
push eax
call dword [0x1012dd48]
add esp, 4
mov eax, dword [esp + 0x6c]
jmp 0x1003f9df
push esi
call dword [0x1012dd10]
add esp, 4
jmp 0x1003f9db
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x44], eax
mov edi, eax
mov dword [esp + 0x14], eax
test eax, eax
je 0x1003fcdc
mov edx, dword [esp + 0x60]
jmp 0x1003f9ff
lea edi, [esp + 0x78]
mov dword [esp + 0x14], edi
xor esi, esi
cmp dword [esp + 0x58], esi
je 0x1003fa12
mov eax, dword [esp + 0x3c]
mov esi, 1
mov byte [edi], al
xor ecx, ecx
test edx, edx
jle 0x1003fa3a
jmp 0x1003fa20
mov eax, dword [esp + 0x30]
mov al, byte [ecx + eax]
mov byte [esi + edi], al
inc esi
cmp al, byte [esp + 0x3c]
jne 0x1003fa35
mov byte [esi + edi], al
inc esi
inc ecx
cmp ecx, edx
jl 0x1003fa20
cmp dword [esp + 0x58], 0
je 0x1003fa49
mov eax, dword [esp + 0x3c]
mov byte [esi + edi], al
inc esi
mov byte [esi + edi], 0
jmp 0x1003f11b
mov ecx, dword [esp + 0x24]
test byte [ecx + 0x19], 1
je case.default.0x1003eda9
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov edx, dword [eax - 4]
test edx, edx
je 0x1003fa84
mov eax, dword [edx + 4]
test eax, eax
je 0x1003fa84
mov edx, dword [edx]
push eax
call fcn.1003ff70
add esp, 4
xor esi, esi
xor eax, eax
jmp 0x1003f11f
mov ecx, dword [esp + 0x24]
test byte [ecx + 0x19], 1
je case.default.0x1003eda9
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
add eax, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], edx
mov eax, dword [eax - 4]
lea esi, [eax + eax*4]
add esi, esi
mov edx, dword [edx + esi*8 + 0xc]
test edx, edx
je 0x1003faee
call fcn.1003ffc0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0xc]
inc edx
cmp edx, dword [ecx + 0x10]
jb 0x1003fadf
push 1
mov edx, 0x10116730
call fcn.1003ff30
add esp, 4
jmp 0x1003faee
mov dword [ecx + 0xc], edx
mov ecx, dword [ecx + 8]
mov al, byte [0x10116730]
mov byte [ecx + edx - 1], al
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov edx, dword [edx + esi*8 + 0x10]
call fcn.1003ffc0
xor esi, esi
xor eax, eax
jmp 0x1003f11f
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0xc]
dec edx
mov ecx, dword [edi + 8]
mov byte [ecx + eax], 0x20
inc dword [edi + 0xc]
test edx, edx
jg 0x1003fb10
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
add ecx, esi
cmp ecx, dword [eax + 0x10]
jb 0x1003fb43
push esi
mov edx, edi
mov ecx, eax
call fcn.1003ff30
add esp, 4
jmp 0x1003fb5c
test esi, esi
je 0x1003fb60
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 8]
push esi
sub eax, esi
add eax, ecx
push edi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp byte [esp + 0x29], 0
je 0x1003fbfe
mov esi, dword [eax + 0xc]
xor ecx, ecx
mov eax, dword [esp + 0x18]
cdq
add esi, eax
adc ecx, edx
js 0x1003fba1
jg 0x1003fb86
mov eax, dword [esp + 0x24]
cmp esi, dword [eax + 0x10]
jb 0x1003fb9d
mov esi, dword [esp + 0x24]
mov ecx, esi
mov edx, dword [esp + 0x18]
call fcn.1003fdd0
mov edx, eax
test edx, edx
jle 0x1003fc06
jmp 0x1003fbb0
mov esi, eax
jmp 0x1003fba5
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
lea esp, [esp]
mov eax, dword [esi + 0xc]
dec edx
mov ecx, dword [esi + 8]
mov byte [ecx + eax], 0x20
inc dword [esi + 0xc]
test edx, edx
jg 0x1003fbb0
jmp 0x1003fc06
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0xc]
add ecx, esi
cmp ecx, dword [edx + 0x10]
jb 0x1003fbe5
push esi
mov esi, dword [esp + 0x28]
mov edx, edi
mov ecx, esi
call fcn.1003ff30
add esp, 4
jmp 0x1003fc06
test esi, esi
je 0x1003fc04
mov eax, dword [edx + 8]
push esi
sub eax, esi
mov dword [edx + 0xc], ecx
add eax, ecx
push edi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov esi, dword [esp + 0x24]
jmp 0x1003fc06
mov esi, edx
mov edx, dword [esp + 0x44]
test edx, edx
je 0x1003fcb7
mov ecx, dword [esi]
test ecx, ecx
je 0x1003fc51
cmp dword [ecx + 0x1c8], 0
je 0x1003fc2b
call fcn.1003e1c0
jmp 0x1003fcb1
cmp edx, dword [ecx + 0x120]
jb 0x1003fc51
cmp edx, dword [ecx + 0x124]
jae 0x1003fc51
mov eax, dword [ecx + 0x11c]
mov dword [edx], eax
dec dword [ecx + 0x108]
mov dword [ecx + 0x11c], edx
jmp 0x1003fcb1
cmp dword [0x1012dce8], 0
je 0x1003fca7
mov eax, dword [0x101318a0]
test eax, eax
je 0x1003fc71
push eax
call dword [0x1012dd40]
mov edx, dword [esp + 0x48]
add esp, 4
push edx
call dword [0x1012dd1c]
mov ecx, dword [esp + 0x48]
add esp, 4
sub dword [0x101318d8], eax
dec dword [0x101318fc]
push ecx
call dword [0x1012dd14]
mov eax, dword [0x101318a0]
add esp, 4
test eax, eax
je 0x1003fcb1
push eax
call dword [0x1012dd48]
jmp 0x1003fcae
push edx
call dword [0x1012dd14]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x54]
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x1003eab4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.100ebd7b
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
mov byte [eax + 0x18], 1
mov dword [eax + 0x10], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.100ebd7b
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0xc]
inc edx
cmp edx, dword [esi + 0x10]
jb 0x1003fd2f
push 1
mov edx, 0x10116718
mov ecx, esi
call fcn.1003ff30
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.100ebd7b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov al, byte [0x10116718]
mov byte [ecx + edx - 1], al
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ebd7b
mov esp, ebp
pop ebp
ret