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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x134
mov eax, dword [0x509018]
xor eax, esp
mov dword [esp + 0x130], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0x10]
push ebx
push esi
test byte [edx + 0x15], 2
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x24], eax
je 0x4162c6
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x34], ecx
mov dword [esp + 0x60], eax
mov byte [esp + 0x23], 1
jmp 0x4162ca
mov byte [esp + 0x23], al
movsx eax, byte [esi]
test eax, eax
je case.default.0x416755
movsd xmm0, qword [0x502da0]
movsd qword [esp + 0xa0], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x88], xmm0
movsd xmm0, qword [0x502bf0]
movsd qword [esp + 0xb0], xmm0
movsd xmm0, qword [0x502be8]
movsd qword [esp + 0xb8], xmm0
movsd xmm0, qword [0x502c18]
movsd qword [esp + 0xc0], xmm0
movsd xmm0, qword [0x502ce0]
movsd qword [esp + 0xc8], xmm0
movsd xmm0, qword [0x502cb0]
movsd qword [esp + 0xd0], xmm0
movsd xmm0, qword [0x502c28]
movsd qword [esp + 0x78], xmm0
movsd xmm0, qword [0x502bf8]
movsd qword [esp + 0xd8], xmm0
movsd xmm0, qword [0x502c90]
movsd qword [esp + 0xe0], xmm0
movsd xmm0, qword [0x502c08]
mov dword [esp + 0x84], 3
movsd qword [esp + 0xe8], xmm0
cmp eax, 0x25
je 0x4163f7
mov ecx, esi
mov dword [esp + 0x24], ecx
nop
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4163ac
cmp al, 0x25
jne 0x4163a0
mov eax, dword [edx + 0x10]
mov edi, esi
sub edi, ecx
add eax, edi
mov dword [esp + 0x38], eax
cmp eax, dword [edx + 8]
jb 0x4163cf
mov edx, ecx
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00417f30
add esp, 4
jmp 0x4163ea
test edi, edi
je 0x4163ee
mov dword [edx + 0x10], eax
mov eax, dword [edx + 4]
push edi
sub eax, edi
add eax, dword [esp + 0x3c]
push ecx
push eax
call fcn.004bf9c0
add esp, 0xc
mov edx, dword [esp + 0x1c]
cmp byte [esi], 0
je case.default.0x416755
movsx ecx, byte [esi + 1]
inc esi
mov dword [esp + 0x64], esi
test ecx, ecx
je 0x417bea
or edi, 0xffffffff
mov byte [esp + 0x47], 0
mov byte [esp + 0x33], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2a], 0
mov byte [esp + 0x22], 0
mov byte [esp + 0x1b], 0
mov dword [esp + 0x2c], 0
mov byte [esp + 0x46], 0
mov dword [esp + 0x54], edi
nop word [eax + eax]
lea eax, [ecx - 0x20]
cmp eax, 0x4c
ja case.0x416453.34
movzx eax, byte [eax + 0x417c6c]
jmp dword [eax*4 + 0x417c3c]
mov byte [esp + 0x1b], 1
jmp 0x4166cb
mov byte [esp + 0x22], 0x2b
jmp 0x4166cb
mov byte [esp + 0x22], 0x20
jmp 0x4166cb
mov byte [esp + 0x2b], 1
jmp 0x4166cb
mov byte [esp + 0x33], 1
jmp 0x4166cb
mov byte [esp + 0x47], 1
jmp 0x4166cb
mov byte [esp + 0x2a], 0x2c
jmp 0x4166cb
inc esi
lea eax, [ecx - 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x64], esi
movsx ecx, byte [esi]
cmp ecx, 0x30
jl 0x4164dd
mov edi, eax
cmp ecx, 0x39
jg 0x4164cd
lea edi, [edi + edi*4]
inc esi
lea edi, [edi - 0x18]
lea edi, [ecx + edi*2]
movsx ecx, byte [esi]
cmp ecx, 0x30
jge 0x4164b6
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x64], esi
and eax, 0x7fffffff
mov dword [esp + 0x2c], eax
cmp ecx, 0x2e
je 0x4166ca
jmp 0x4166c5
cmp byte [esp + 0x23], 0
je 0x416571
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 4]
cmp dword [eax], edx
jg 0x416515
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov eax, dword [esp + 0x48]
jmp 0x41657f
mov eax, dword [eax + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov edx, dword [esp + 0x60]
mov dword [edx + 4], eax
movzx eax, word [ecx + 8]
test al, 0x24
je 0x416538
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [esp + 0x4c], edx
jmp 0x41657f
test al, 8
je 0x41654b
movsd xmm0, qword [ecx]
call fcn.00435b10
mov dword [esp + 0x4c], edx
jmp 0x41657f
test al, 0x12
je 0x41655a
call fcn.00435b40
mov dword [esp + 0x4c], edx
jmp 0x41657f
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], edx
jmp 0x41657f
mov eax, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x34], eax
mov eax, dword [eax - 4]
mov dword [esp + 0x2c], eax
test eax, eax
jns 0x4165a3
mov byte [esp + 0x1b], 1
cmp eax, 0x80000001
jl 0x41659b
neg eax
mov dword [esp + 0x2c], eax
jmp 0x4165a3
mov dword [esp + 0x2c], 0
movsx ecx, byte [esi + 1]
lea eax, [esi + 1]
cmp ecx, 0x2e
je 0x4166cb
cmp ecx, 0x6c
je 0x4166cb
mov dword [esp + 0x64], eax
jmp case.0x416453.34
movsx ecx, byte [esi + 1]
inc esi
mov dword [esp + 0x64], esi
cmp ecx, 0x2a
jne 0x416695
cmp byte [esp + 0x23], 0
je 0x416654
mov edi, dword [esp + 0x60]
mov edx, dword [edi + 4]
cmp dword [edi], edx
jg 0x4165f8
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov edi, dword [esp + 0x48]
jmp 0x416662
mov eax, dword [edi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [edi + 4], eax
movzx eax, word [ecx + 8]
test al, 0x24
je 0x416617
mov edx, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [esp + 0x4c], edx
jmp 0x416662
test al, 8
je 0x41662c
movsd xmm0, qword [ecx]
call fcn.00435b10
mov edi, eax
mov dword [esp + 0x4c], edx
jmp 0x416662
test al, 0x12
je 0x41663d
call fcn.00435b40
mov edi, eax
mov dword [esp + 0x4c], edx
jmp 0x416662
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x4c], edx
jmp 0x416662
mov eax, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x34], eax
mov edi, dword [eax - 4]
mov dword [esp + 0x54], edi
test edi, edi
jns 0x41668a
cmp edi, 0x80000001
jl 0x416683
movsx ecx, byte [esi + 1]
neg edi
inc esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x64], esi
jmp 0x4166c5
or edi, 0xffffffff
mov dword [esp + 0x54], edi
movsx ecx, byte [esi + 1]
inc esi
mov dword [esp + 0x64], esi
jmp 0x4166c5
xor edi, edi
cmp ecx, 0x30
jl 0x4166bb
nop dword [eax]
cmp ecx, 0x39
jg 0x4166b7
lea edi, [edi + edi*4]
inc esi
lea edi, [edi - 0x18]
lea edi, [ecx + edi*2]
movsx ecx, byte [esi]
cmp ecx, 0x30
jge 0x4166a0
mov dword [esp + 0x64], esi
and edi, 0x7fffffff
mov dword [esp + 0x54], edi
cmp ecx, 0x6c
jne case.0x416453.34
dec esi
movsx ecx, byte [esi + 1]
inc esi
mov dword [esp + 0x64], esi
test ecx, ecx
jne 0x416440
jmp case.0x416453.34
movsx ecx, byte [esi + 1]
inc esi
mov byte [esp + 0x46], 1
mov dword [esp + 0x64], esi
cmp ecx, 0x6c
jne case.0x416453.34
movsx ecx, byte [esi + 1]
inc esi
mov dword [esp + 0x64], esi
mov byte [esp + 0x46], 2
mov dword [esp + 0x58], 0x4f3cb8
xor esi, esi
mov byte [esp + 0x21], 0x11
mov edx, 0x4f3cb8
movsx eax, byte [edx]
cmp ecx, eax
je 0x416730
add edx, 6
inc esi
cmp edx, 0x4f3d42
jl 0x416713
mov dl, byte [esp + 0x21]
mov ecx, dword [esp + 0x58]
jmp 0x416749
lea eax, [esi + esi*2]
mov dl, byte [eax*2 + 0x4f3cbb]
lea ecx, [eax*2 + 0x4f3cb8]
mov dword [esp + 0x58], ecx
mov byte [esp + 0x21], dl
movzx eax, dl
cmp eax, 0x10
ja case.default.0x416755
jmp dword [eax*4 + 0x417cbc]
mov byte [esp + 0x46], 1
mov byte [esp + 0x2a], 0
test byte [ecx + 2], 1
je 0x416893
cmp byte [esp + 0x23], 0
je 0x416824
mov esi, dword [esp + 0x60]
mov edx, dword [esi + 4]
cmp dword [esi], edx
jg 0x4167a8
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov dl, byte [esp + 0x22]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], ecx
jmp 0x41695f
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [esi + 4], eax
movzx eax, word [ecx + 8]
test al, 0x24
je 0x4167d1
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 4]
mov ecx, eax
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
jmp 0x416850
test al, 8
je 0x4167ec
movsd xmm0, qword [ecx]
call fcn.00435b10
mov dword [esp + 0x50], edx
mov esi, eax
mov dword [esp + 0x3c], eax
mov ecx, edx
jmp 0x416850
test al, 0x12
je 0x416803
call fcn.00435b40
mov dword [esp + 0x50], edx
mov esi, eax
mov dword [esp + 0x3c], eax
mov ecx, edx
jmp 0x416850
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
mov esi, eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
jmp 0x416850
mov al, byte [esp + 0x46]
mov ecx, dword [esp + 0x34]
test al, al
je 0x416842
cmp al, 2
jne 0x416842
mov esi, dword [ecx]
add ecx, 8
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx - 4]
jmp 0x416850
mov eax, dword [ecx]
add ecx, 4
cdq
mov dword [esp + 0x34], ecx
mov esi, eax
mov ecx, edx
test ecx, ecx
jg 0x416797
jl 0x416862
test esi, esi
jae 0x416797
test esi, esi
jne 0x41687d
cmp ecx, 0x80000000
jne 0x41687d
mov dword [esp + 0x50], ecx
mov dl, 0x2d
mov dword [esp + 0x3c], esi
jmp 0x41695b
neg esi
mov dl, 0x2d
mov dword [esp + 0x3c], esi
adc ecx, 0
neg ecx
mov dword [esp + 0x50], ecx
jmp 0x41695b
cmp byte [esp + 0x23], 0
je 0x416928
mov esi, dword [esp + 0x60]
mov edx, dword [esi + 4]
cmp dword [esi], edx
jle 0x416907
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [esi + 4], eax
movzx eax, word [ecx + 8]
test al, 0x24
je 0x4168d5
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 4]
mov ecx, eax
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
jmp 0x416959
test al, 8
je 0x4168f0
movsd xmm0, qword [ecx]
call fcn.00435b10
mov dword [esp + 0x50], edx
mov esi, eax
mov dword [esp + 0x3c], eax
mov ecx, edx
jmp 0x416959
test al, 0x12
je 0x416907
call fcn.00435b40
mov dword [esp + 0x50], edx
mov esi, eax
mov dword [esp + 0x3c], eax
mov ecx, edx
jmp 0x416959
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
mov esi, eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
jmp 0x416959
mov al, byte [esp + 0x46]
mov ecx, dword [esp + 0x34]
test al, al
je 0x416946
cmp al, 2
jne 0x416946
mov esi, dword [ecx]
add ecx, 8
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx - 4]
jmp 0x416951
mov esi, dword [ecx]
add ecx, 4
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], ecx
xor dl, dl
mov byte [esp + 0x22], dl
mov eax, esi
or eax, ecx
jne 0x416969
mov byte [esp + 0x2b], al
cmp byte [esp + 0x47], 0
je 0x416986
mov ecx, dword [esp + 0x2c]
xor eax, eax
test dl, dl
setne al
sub ecx, eax
cmp edi, ecx
cmovl edi, ecx
mov dword [esp + 0x54], edi
cmp edi, 0x25
jge 0x4169a1
mov eax, 0x46
lea ecx, [esp + 0xf0]
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
jmp 0x4169f4
mov eax, edi
cdq
add eax, 0xa
mov ecx, edx
mov dword [esp + 0x40], eax
adc ecx, 0
cmp byte [esp + 0x2a], 0
je 0x4169d0
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
add dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
adc ecx, edx
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.004161d0
add esp, 8
mov dword [esp + 0x74], eax
mov ecx, eax
mov dword [esp + 0x38], ecx
test eax, eax
je case.default.0x416755
mov eax, dword [esp + 0x40]
dec eax
add eax, ecx
cmp byte [esp + 0x21], 0xf
mov dword [esp + 0x24], eax
jne 0x416ac9
mov eax, esi
mov ecx, 0xcccccccd
mul ecx
lea edi, [ecx - 1]
mov dword [esp + 0x48], eax
mov esi, edx
mov eax, dword [esp + 0x3c]
mul edi
mov edi, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x50]
mul ecx
mov ecx, eax
mov dword [esp + 0x90], edx
mov eax, dword [esp + 0x50]
mov edx, 0xcccccccc
mul edx
add ecx, esi
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x90]
adc edx, 0
mov dword [esp + 0x5c], eax
mov esi, eax
add edi, ecx
mov ecx, dword [esp + 0x68]
adc ecx, 0
mov dword [esp + 0x90], edi
xor eax, eax
add edx, ecx
mov ecx, dword [esp + 0x48]
adc eax, eax
add esi, edx
adc ecx, eax
shrd esi, ecx, 3
mov dword [esp + 0x5c], esi
shr ecx, 3
lea eax, [esi + esi*4]
mov esi, dword [esp + 0x3c]
add eax, eax
mov edi, esi
sub edi, eax
cmp edi, 4
jge 0x416aa7
mov eax, dword [esp + 0x5c]
push 0
push 0xa
push ecx
push eax
call fcn.004dd5d0
cmp eax, 1
jne 0x416aa9
test edx, edx
jne 0x416aa9
xor edi, edi
mov ecx, dword [esp + 0x24]
movzx eax, byte [edi*2 + 0x4f0c65]
mov byte [ecx - 1], al
sub ecx, 2
movzx eax, byte [edi*2 + str.thstndrd]
mov dword [esp + 0x24], ecx
mov byte [ecx], al
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x24]
movzx eax, byte [ecx + 4]
add eax, 0x4f040c
mov dword [esp + 0x48], eax
movzx eax, byte [ecx + 1]
cdq
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x5c], eax
push ebx
push eax
push ecx
push edx
push esi
dec edi
call fcn.004dd240
mov dword [esp + 0x70], ebx
pop ebx
mov esi, eax
mov eax, dword [esp + 0x48]
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x3c]
mov byte [edi], al
mov eax, dword [esp + 0x5c]
test edx, edx
ja 0x416af3
jb 0x416b20
test esi, esi
jne 0x416af3
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
lea edx, [esi - 1]
add edx, eax
cmp edx, edi
jge 0x416b52
mov eax, edi
sub eax, edx
mov edx, edi
dec ecx
mov byte [ecx], 0x30
sub eax, 1
jne 0x416b45
mov dword [esp + 0x24], ecx
cmp byte [esp + 0x2a], 0
je 0x416b9a
lea eax, [edx - 1]
cdq
idiv dword [esp + 0x84]
mov esi, eax
sub ecx, esi
mov dword [esp + 0x24], ecx
lea edi, [edx + 1]
xor edx, edx
test esi, esi
jle 0x416b96
lea eax, [esi + edx]
mov al, byte [eax + ecx]
mov byte [edx + ecx], al
sub edi, 1
jne 0x416b91
mov al, byte [esp + 0x2a]
inc edx
dec esi
mov edi, 3
mov byte [edx + ecx], al
inc edx
test esi, esi
jg 0x416b75
mov esi, dword [esp + 0x40]
mov al, byte [esp + 0x22]
test al, al
je 0x416ba9
dec ecx
mov dword [esp + 0x24], ecx
mov byte [ecx], al
cmp byte [esp + 0x2b], 0
je 0x416be0
mov eax, dword [esp + 0x58]
mov al, byte [eax + 5]
test al, al
je 0x416be0
movzx eax, al
add eax, 0x4ef7c4
mov dl, byte [eax]
test dl, dl
je 0x416be0
nop dword [eax]
dec ecx
lea eax, [eax + 1]
mov byte [ecx], dl
mov dl, byte [eax]
test dl, dl
jne 0x416bd0
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x38]
dec esi
sub eax, ecx
add esi, eax
mov edi, dword [esp + 0x2c]
mov al, byte [esp + 0x1b]
mov edx, dword [esp + 0x1c]
sub edi, esi
mov dword [esp + 0x2c], edi
test edi, edi
jle 0x417b3a
test al, al
jne 0x416c66
mov eax, dword [edx + 0x10]
xor ecx, ecx
mov dword [esp + 0x38], eax
mov eax, edi
cdq
add dword [esp + 0x38], eax
mov dword [esp + 0x5c], edi
adc ecx, edx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
js 0x416c45
jg 0x416c2e
cmp dword [esp + 0x38], eax
jb 0x416c45
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.00417d00
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
test eax, eax
jle 0x416c66
mov edi, dword [esp + 0x5c]
nop dword [eax]
mov ecx, dword [edx + 0x10]
dec edi
mov eax, dword [edx + 4]
mov byte [ecx + eax], 0x20
inc dword [edx + 0x10]
test edi, edi
jg 0x416c50
mov edi, dword [esp + 0x2c]
mov ecx, dword [edx + 0x10]
add ecx, esi
cmp ecx, dword [edx + 8]
jb 0x417ad0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00417f30
add esp, 4
jmp 0x417aed
cmp byte [esp + 0x23], 0
je 0x416d0a
mov esi, dword [esp + 0x60]
mov edx, dword [esi + 4]
cmp dword [esi], edx
jle 0x416cf5
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [esi + 4], eax
movzx eax, word [ecx + 8]
test al, 8
je 0x416cc0
movsd xmm1, qword [ecx]
mov dl, byte [esp + 0x21]
movsd qword [esp + 0x68], xmm1
jmp 0x416d20
test al, 0x24
je 0x416cdd
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004ddeb0
mov dl, byte [esp + 0x21]
movaps xmm1, xmm0
movsd qword [esp + 0x68], xmm1
jmp 0x416d20
test al, 0x12
je 0x416cf5
call fcn.00435bb0
mov dl, byte [esp + 0x21]
movaps xmm1, xmm0
movsd qword [esp + 0x68], xmm0
jmp 0x416d20
movsd xmm1, qword [esp + 0x88]
mov dl, byte [esp + 0x21]
movsd qword [esp + 0x68], xmm1
jmp 0x416d20
mov ecx, dword [esp + 0x34]
add ecx, 8
mov dword [esp + 0x34], ecx
movsd xmm1, qword [ecx - 8]
movsd qword [esp + 0x68], xmm1
movsd xmm2, qword [esp + 0x88]
test edi, edi
mov eax, 6
cmovs edi, eax
comisd xmm2, xmm1
jbe 0x416d4c
xorps xmm1, xmmword [esp + 0xa0]
movsd qword [esp + 0x68], xmm1
mov byte [esp + 0x22], 0x2d
cmp dl, 3
jne 0x416d56
test edi, edi
jle 0x416d56
dec edi
mov esi, edi
mov eax, 0xcccccccd
and esi, 0xfff
mul esi
mov eax, esi
shr edx, 3
lea ecx, [edx + edx*4]
add ecx, ecx
sub eax, ecx
movsd xmm3, qword [eax*8 + 0x4f48e8]
cmp esi, 0xa
jb 0x416d99
movsd xmm0, qword [esp + 0xb0]
nop dword [eax + eax]
mulsd xmm3, xmm0
sub edx, 1
jne 0x416d90
cmp byte [esp + 0x21], 1
jne 0x416deb
movsd qword [esp + 0x48], xmm1
mov eax, 0x55555556
mov ecx, dword [esp + 0x4c]
shr ecx, 0x14
and ecx, 0x7ff
sub ecx, 0x3ff
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, edi
cmp eax, 0xf
jge 0x416dde
movaps xmm0, xmm1
mulsd xmm0, qword [esp + 0xb8]
addsd xmm3, xmm0
movaps xmm0, xmm3
addsd xmm1, xmm0
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0x48], xmm1
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov edx, ecx
and edx, 0x7ff00000
mov dword [esp + 0x40], eax
cmp edx, 0x7ff00000
jne 0x416e30
mov eax, dword [esp + 0x48]
and ecx, 0xfffff
or eax, ecx
je 0x416e2c
mov ecx, 0x4fba04
mov esi, 3
mov dword [esp + 0x24], ecx
jmp 0x416be9
mov eax, dword [esp + 0x40]
comisd xmm1, xmm2
jbe 0x416f6c
movsd xmm4, qword [esp + 0xc8]
comisd xmm1, xmm4
movsd xmm5, qword [esp + 0xc0]
movaps xmm2, xmm5
jb 0x416e74
cmp eax, 0x15e
jg 0x416e70
mulsd xmm2, xmm4
add eax, 0x64
movaps xmm0, xmm2
mulsd xmm0, xmm4
comisd xmm1, xmm0
jae 0x416e55
mov dword [esp + 0x40], eax
movsd xmm4, qword [esp + 0xd0]
movaps xmm0, xmm2
mulsd xmm0, xmm4
comisd xmm1, xmm0
jb 0x416eab
nop word [eax + eax]
cmp eax, 0x15e
jg 0x416ea7
movaps xmm2, xmm0
add eax, 0xa
mulsd xmm0, xmm4
comisd xmm1, xmm0
jae 0x416e90
mov dword [esp + 0x40], eax
movsd xmm4, qword [esp + 0x78]
movaps xmm0, xmm2
mulsd xmm0, xmm4
comisd xmm1, xmm0
jb 0x416ed9
nop
cmp eax, 0x15e
jg 0x416ed5
movaps xmm2, xmm0
inc eax
mulsd xmm0, xmm4
comisd xmm1, xmm0
jae 0x416ec0
mov dword [esp + 0x40], eax
divsd xmm1, xmm2
movsd xmm0, qword [esp + 0xd8]
comisd xmm0, xmm1
movsd qword [esp + 0x68], xmm1
jbe 0x416f17
movsd xmm2, qword [esp + 0xe0]
nop dword [eax + eax]
mulsd xmm1, xmm2
sub eax, 8
comisd xmm0, xmm1
ja 0x416f00
mov dword [esp + 0x40], eax
movsd qword [esp + 0x68], xmm1
comisd xmm5, xmm1
jbe 0x416f35
nop dword [eax]
mulsd xmm1, xmm4
dec eax
comisd xmm5, xmm1
ja 0x416f20
mov dword [esp + 0x40], eax
movsd qword [esp + 0x68], xmm1
cmp eax, 0x15e
jle 0x416f72
mov dl, byte [esp + 0x22]
lea ecx, [esp + 0xf0]
xor eax, eax
mov byte [esp + 0xf0], dl
test dl, dl
mov dword [esp + 0x24], ecx
setne al
mov dword [esp + eax + 0xf0], 0x666e49
lea esi, [eax + 3]
jmp 0x416be9
movsd xmm4, qword [esp + 0x78]
mov dl, byte [esp + 0x21]
lea esi, [esp + 0xf0]
cmp dl, 1
je 0x416fa6
addsd xmm1, xmm3
comisd xmm1, xmm4
movsd qword [esp + 0x68], xmm1
jb 0x416fa6
mulsd xmm1, qword [esp + 0xe8]
inc eax
mov dword [esp + 0x40], eax
movsd qword [esp + 0x68], xmm1
cmp dl, 3
jne 0x416fd0
cmp byte [esp + 0x2b], 0
sete byte [esp + 0x2a]
cmp eax, 0xfffffffc
jl 0x416fc8
cmp eax, edi
jg 0x416fc8
mov dl, 1
sub edi, eax
mov byte [esp + 0x21], dl
jmp 0x416fd8
mov dl, 2
mov byte [esp + 0x21], dl
jmp 0x416fd8
mov cl, byte [esp + 0x33]
mov byte [esp + 0x2a], cl
xor ecx, ecx
cmp dl, 2
cmovne ecx, eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x48], ecx
cmovg eax, ecx
cdq
mov ecx, eax
mov dword [esp + 0x38], edx
mov eax, edi
cdq
add ecx, eax
mov eax, dword [esp + 0x2c]
adc dword [esp + 0x38], edx
cdq
add ecx, eax
mov eax, dword [esp + 0x38]
adc eax, edx
add ecx, 0xf
adc eax, 0
js 0x417033
jg 0x417017
cmp ecx, 0x46
jbe 0x417033
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004161d0
add esp, 8
mov dword [esp + 0x74], eax
mov esi, eax
test eax, eax
je case.default.0x416755
movzx eax, byte [esp + 0x33]
test edi, edi
mov dl, byte [esp + 0x22]
mov dword [esp + 0x24], esi
lea eax, [eax + eax*4]
lea ecx, [eax*2 + 0x10]
setg al
or al, byte [esp + 0x33]
or al, byte [esp + 0x2b]
mov dword [esp + 0x38], ecx
mov byte [esp + 0x2b], al
test dl, dl
je 0x417066
mov byte [esi], dl
inc esi
mov edx, dword [esp + 0x48]
test edx, edx
jns 0x417074
mov byte [esi], 0x30
inc esi
jmp 0x4170b5
movsd xmm1, qword [esp + 0x68]
movsd xmm2, qword [esp + 0x78]
test ecx, ecx
jg 0x417088
mov al, 0x30
jmp 0x41709f
cvttsd2si eax, xmm1
dec ecx
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, xmm2
mov byte [esi], al
inc esi
sub edx, 1
jns 0x417080
mov al, byte [esp + 0x2b]
mov dword [esp + 0x38], ecx
movsd qword [esp + 0x68], xmm1
test al, al
je 0x4170bd
mov byte [esi], 0x2e
inc esi
inc edx
mov eax, edx
neg eax
test edx, edx
jns 0x417161
cmp eax, 8
jb 0x41713f
and eax, 0x80000007
jns 0x4170db
dec eax
or eax, 0xfffffff8
inc eax
movaps xmm0, xmmword [0x502d80]
neg eax
movaps xmm3, xmmword [0x502d40]
xorps xmm1, xmm1
movaps xmmword [esp + 0x90], xmm0
xorps xmm2, xmm2
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x90]
mov dword [esi], eax
add edx, 8
mov dword [esi + 4], eax
psubd xmm1, xmm3
add esi, 8
psubd xmm2, xmm3
cmp edx, dword [esp + 0x48]
jl 0x417104
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
add edi, eax
test edx, edx
jns 0x417161
neg edx
push edx
push 0x30
push esi
mov dword [esp + 0x54], edx
call fcn.004c04c0
add esi, dword [esp + 0x54]
add esp, 0xc
sub edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
test edi, edi
jle 0x41719a
dec edi
test ecx, ecx
jg 0x41716e
mov al, 0x30
jmp 0x417193
movsd xmm1, qword [esp + 0x68]
dec ecx
cvttsd2si eax, xmm1
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, qword [esp + 0x78]
movsd qword [esp + 0x68], xmm1
mov byte [esi], al
inc esi
test edi, edi
jg 0x417165
cmp byte [esp + 0x2a], 0
je 0x4171d5
cmp byte [esp + 0x2b], 0
je 0x4171d5
cmp byte [esi - 1], 0x30
lea eax, [esi - 1]
jne 0x4171be
mov esi, eax
lea eax, [esi - 1]
mov byte [esi], 0
cmp byte [eax], 0x30
je 0x4171b1
cmp byte [esi - 1], 0x2e
jne 0x4171d5
cmp byte [esp + 0x33], 0
je 0x4171d1
mov byte [esi], 0x30
inc esi
jmp 0x4171d5
dec esi
mov byte [esi], 0
cmp byte [esp + 0x21], 2
jne 0x417272
mov eax, dword [esp + 0x58]
lea edi, [esi + 2]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x48], edi
movzx eax, byte [eax + 4]
mov al, byte [eax + 0x4f040c]
mov byte [esi], al
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
test ecx, ecx
mov dword [esp + 0x58], eax
sets cl
lea ecx, [ecx*2 + 0x2b]
mov byte [esi + 1], cl
mov esi, edi
mov edi, dword [esp + 0x58]
cmp eax, 0x64
jl 0x417244
mov esi, dword [esp + 0x48]
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + 0x30]
mov byte [esi], al
inc esi
imul eax, ecx, 0x64
sub edi, eax
mov dword [esp + 0x58], edi
mov eax, 0x66666667
imul edi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + 0x30]
mov byte [esi], al
mov al, cl
shl cl, 2
add al, cl
mov ecx, dword [esp + 0x58]
add al, al
sub cl, al
add cl, 0x30
mov byte [esi + 1], cl
add esi, 2
mov ecx, dword [esp + 0x24]
mov al, byte [esp + 0x1b]
mov edi, dword [esp + 0x2c]
mov byte [esi], 0
sub esi, ecx
cmp byte [esp + 0x47], 0
je 0x416bf1
test al, al
jne 0x416bf1
cmp esi, edi
jge 0x416bf1
mov eax, edi
mov edx, edi
sub eax, esi
mov esi, eax
mov dword [esp + 0x48], eax
cmp edi, esi
jl 0x4172c1
mov edi, ecx
sub edi, esi
mov al, byte [edi + edx]
mov byte [edx + ecx], al
dec edx
cmp edx, esi
jge 0x4172b2
mov edi, dword [esp + 0x2c]
xor eax, eax
cmp byte [esp + 0x22], al
setne al
test esi, esi
je 0x4172e0
push esi
add eax, ecx
push 0x30
push eax
call fcn.004c04c0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov esi, edi
jmp 0x416bed
cmp byte [esp + 0x23], 0
jne 0x417305
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
add ecx, 4
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx - 4]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
xor edi, edi
xor esi, esi
jmp 0x416bed
lea ecx, [esp + 0xf0]
mov byte [esp + 0xf0], 0x25
mov dword [esp + 0x24], ecx
mov esi, 1
jmp 0x416be9
cmp byte [esp + 0x23], 0
je 0x4173db
mov esi, dword [esp + 0x60]
mov edx, dword [esi + 4]
cmp dword [esi], edx
jle 0x4173c9
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [esi + 4], eax
test ecx, ecx
je 0x4173c9
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x417376
cmp byte [ecx + 0xa], 1
jne 0x417376
mov edx, dword [ecx + 0x10]
jmp 0x417384
test dl, 1
jne 0x4173c9
mov dl, 1
call fcn.004365a0
mov edx, eax
mov esi, 1
test edx, edx
je 0x4173c9
mov cl, byte [edx]
mov byte [esp + 0xf0], cl
movsx ecx, cl
and ecx, 0xc0
cmp cl, 0xc0
jne 0x4174a4
mov cl, byte [edx + esi]
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x4174a4
mov byte [esp + esi + 0xf0], cl
inc esi
cmp esi, 4
jl 0x4173a8
jmp 0x4174a4
mov byte [esp + 0xf0], 0
mov esi, 1
jmp 0x4174a4
mov ecx, dword [esp + 0x34]
add ecx, 4
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx - 4]
cmp ecx, 0x80
jae 0x417402
mov byte [esp + 0xf0], cl
mov esi, 1
jmp 0x4174a4
mov eax, ecx
cmp ecx, 0x800
jae 0x41742e
shr eax, 6
and cl, 0x3f
and al, 0x1f
mov esi, 2
sub al, 0x40
add cl, 0x80
mov byte [esp + 0xf0], al
mov byte [esp + 0xf1], cl
jmp 0x4174a4
mov dl, cl
and dl, 0x3f
add dl, 0x80
cmp ecx, 0x10000
jae 0x41746a
shr eax, 0xc
mov esi, 3
shr ecx, 6
and al, 0xf
sub al, 0x20
mov byte [esp + 0xf2], dl
and cl, 0x3f
mov byte [esp + 0xf0], al
add cl, 0x80
mov byte [esp + 0xf1], cl
jmp 0x4174a4
shr eax, 0x12
mov esi, 4
and al, 7
mov byte [esp + 0xf3], dl
sub al, 0x10
mov byte [esp + 0xf0], al
mov eax, ecx
shr eax, 0xc
shr ecx, 6
and al, 0x3f
add al, 0x80
and cl, 0x3f
add cl, 0x80
mov byte [esp + 0xf1], al
mov byte [esp + 0xf2], cl
cmp edi, 1
jle 0x417576
mov eax, dword [esp + 0x2c]
sub eax, edi
mov edx, eax
inc eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x2c], eax
cmp eax, 1
jle 0x41752c
cmp byte [esp + 0x1b], 0
jne 0x41752c
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x38], eax
mov eax, edx
cdq
add dword [esp + 0x38], eax
adc ecx, edx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
js 0x41750a
jg 0x4174f1
cmp dword [esp + 0x38], eax
jb 0x41750a
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
call fcn.00417d00
mov dword [esp + 0x5c], eax
test eax, eax
jle 0x417526
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x5c]
nop
mov ecx, dword [edx + 0x10]
dec edi
mov eax, dword [edx + 4]
mov byte [ecx + eax], 0x20
inc dword [edx + 0x10]
test edi, edi
jg 0x417510
mov edi, dword [esp + 0x54]
xor edx, edx
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x1c]
dec edi
mov edx, dword [ecx + 0x10]
add edx, esi
cmp edx, dword [ecx + 8]
jb 0x41754d
push esi
lea edx, [esp + 0xf4]
call fcn.00417f30
add esp, 4
jmp 0x41756d
test esi, esi
je 0x417571
push esi
lea eax, [esp + 0xf4]
mov dword [ecx + 0x10], edx
push eax
mov eax, dword [ecx + 4]
sub eax, esi
add eax, edx
push eax
call fcn.004bf9c0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
sub edi, 1
jne 0x417531
lea ecx, [esp + 0xf0]
mov dword [esp + 0x24], ecx
jmp 0x4178e5
cmp byte [esp + 0x23], 0
je 0x4175fd
mov esi, dword [esp + 0x60]
mov edx, dword [esi + 4]
cmp dword [esi], edx
jg 0x4175a2
xor ecx, ecx
mov dl, 5
mov dword [esp + 0x24], ecx
jmp 0x41760f
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x4175ba
mov dword [esp + 0x24], ecx
mov dl, 5
jmp 0x41760f
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x4175dd
cmp byte [ecx + 0xa], 1
jne 0x4175dd
mov ecx, dword [ecx + 0x10]
mov dl, 5
mov dword [esp + 0x24], ecx
jmp 0x41760f
test dl, 1
je 0x4175ec
xor ecx, ecx
mov dl, 5
mov dword [esp + 0x24], ecx
jmp 0x41760f
mov dl, 1
call fcn.004365a0
mov ecx, eax
mov dword [esp + 0x24], eax
mov dl, 5
jmp 0x41760f
mov ecx, dword [esp + 0x34]
add ecx, 4
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx - 4]
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x417621
mov ecx, 0x4f9042
mov dword [esp + 0x24], ecx
jmp 0x4176b0
cmp dl, 6
jne 0x4176b0
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x10], 0
jne 0x4176ac
cmp dword [edx + 0xc], 0
je 0x4176ac
cmp dword [esp + 0x2c], 0
jne 0x4176ac
test edi, edi
jns 0x4176ac
cmp byte [edx + 0x14], 0
jne 0x4176ac
mov eax, dword [edx]
mov dword [edx + 4], ecx
test eax, eax
je 0x41766d
cmp ecx, dword [eax + 0x138]
jb 0x41766d
cmp ecx, dword [eax + 0x13c]
jae 0x41766d
movzx eax, word [eax + 0x11c]
jmp 0x41767f
push ecx
call dword [0x509a88]
mov ecx, dword [esp + 0x28]
add esp, 4
mov edx, dword [esp + 0x1c]
mov esi, ecx
mov dword [edx + 8], eax
lea edi, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x417687
or byte [edx + 0x15], 4
sub esi, edi
mov edi, dword [esp + 0x2c]
and esi, 0x7fffffff
mov al, byte [esp + 0x1b]
mov dword [edx + 0x10], esi
xor esi, esi
jmp 0x416bf5
mov dword [esp + 0x74], ecx
test edi, edi
js 0x417708
cmp byte [esp + 0x33], 0
je 0x4176ea
mov esi, ecx
test edi, edi
jle 0x4176e3
mov al, byte [esi]
dec edi
test al, al
je 0x4176e3
inc esi
cmp al, 0xc0
jb 0x4176df
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4176df
mov al, byte [esi + 1]
inc esi
and al, 0xc0
cmp al, 0x80
je 0x4176d5
test edi, edi
jg 0x4176c1
sub esi, ecx
jmp 0x4178da
xor esi, esi
test edi, edi
jle 0x416be9
cmp byte [esi + ecx], 0
je 0x416be9
inc esi
cmp esi, edi
jl 0x4176f4
jmp 0x416be9
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x417710
sub esi, edx
and esi, 0x7fffffff
jmp 0x4178da
cmp dl, 0xe
mov eax, 0x27
mov ecx, 0x22
cmove eax, ecx
cmp byte [esp + 0x23], 0
mov dword [esp + 0x3c], eax
je 0x41779d
mov esi, dword [esp + 0x60]
mov edx, dword [esi + 4]
cmp dword [esi], edx
jg 0x417754
mov dword [esp + 0x38], 0
jmp 0x4177b7
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x417768
xor esi, esi
jmp 0x4177ab
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x417785
cmp byte [ecx + 0xa], 1
jne 0x417785
mov esi, dword [ecx + 0x10]
jmp 0x4177ab
test dl, 1
je 0x41778e
xor esi, esi
jmp 0x4177ab
mov dl, 1
call fcn.004365a0
mov esi, eax
mov dword [esp + 0x40], eax
jmp 0x4177af
mov ecx, dword [esp + 0x34]
add ecx, 4
mov dword [esp + 0x34], ecx
mov esi, dword [ecx - 4]
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], esi
test esi, esi
jne 0x4177cd
cmp byte [esp + 0x21], 0xa
mov esi, str.NULL
mov eax, str._NULL_
cmovne esi, eax
mov dword [esp + 0x40], esi
xor eax, eax
xor edx, edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edx
test edi, edi
je 0x41782c
nop dword [eax]
mov cl, byte [edx + esi]
test cl, cl
je 0x417828
inc eax
cmp cl, byte [esp + 0x3c]
cmovne eax, dword [esp + 0x58]
cmp byte [esp + 0x33], 0
mov dword [esp + 0x58], eax
je 0x417822
and cl, 0xc0
cmp cl, 0xc0
jne 0x417822
lea ecx, [esi + 1]
add ecx, edx
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x41781e
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
and al, 0xc0
inc edx
cmp al, 0x80
je 0x417811
mov eax, dword [esp + 0x58]
inc edx
sub edi, 1
jne 0x4177e0
mov dword [esp + 0x54], edx
cmp dword [esp + 0x38], 0
je 0x417841
cmp byte [esp + 0x21], 0xa
jne 0x417841
mov edi, 1
jmp 0x417843
xor edi, edi
add eax, 3
mov dword [esp + 0x38], edi
add eax, edx
cmp eax, 0x46
jle 0x417878
mov ecx, dword [esp + 0x1c]
cdq
push edx
push eax
call fcn.004161d0
add esp, 8
mov dword [esp + 0x74], eax
mov dword [esp + 0x24], eax
mov ecx, eax
test eax, eax
je case.default.0x416755
mov edx, dword [esp + 0x54]
jmp 0x417883
lea ecx, [esp + 0xf0]
mov dword [esp + 0x24], ecx
xor esi, esi
test edi, edi
je 0x417894
mov eax, dword [esp + 0x3c]
mov esi, 1
mov byte [ecx], al
xor eax, eax
test edx, edx
jle 0x4178ca
mov edi, dword [esp + 0x40]
nop
mov dl, byte [eax + edi]
mov byte [esi + ecx], dl
inc esi
cmp dl, byte [esp + 0x3c]
mov byte [esp + 0x47], dl
mov edx, dword [esp + 0x54]
jne 0x4178c1
mov dl, byte [esp + 0x47]
mov byte [esi + ecx], dl
inc esi
mov edx, dword [esp + 0x54]
inc eax
cmp eax, edx
jl 0x4178a0
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4178d6
mov eax, dword [esp + 0x3c]
mov byte [esi + ecx], al
inc esi
mov byte [esi + ecx], 0
cmp byte [esp + 0x33], 0
je 0x416be9
mov edi, dword [esp + 0x2c]
test edi, edi
jle 0x416bed
lea edx, [esi - 1]
test edx, edx
js 0x416bed
nop dword [eax]
lea eax, [edx + ecx]
mov al, byte [eax]
lea ecx, [edi + 1]
and al, 0xc0
cmp al, 0x80
cmovne ecx, edi
sub edx, 1
mov edi, ecx
mov ecx, dword [esp + 0x24]
jns 0x417900
jmp 0x416bed
mov edx, dword [esp + 0x1c]
test byte [edx + 0x15], 1
je case.default.0x416755
mov ecx, dword [esp + 0x34]
add ecx, 4
mov dword [esp + 0x34], ecx
mov eax, dword [ecx - 4]
test eax, eax
je 0x41798e
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41798e
mov esi, dword [edx + 0x10]
mov edi, dword [eax]
add esi, ecx
push ecx
cmp esi, dword [edx + 8]
jb 0x417976
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.00417f30
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x24]
xor edi, edi
mov al, byte [esp + 0x1b]
xor esi, esi
jmp 0x416bf5
mov eax, dword [edx + 4]
sub eax, ecx
mov dword [edx + 0x10], esi
add eax, esi
push edi
push eax
call fcn.004bf9c0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x24]
xor edi, edi
mov al, byte [esp + 0x1b]
xor esi, esi
jmp 0x416bf5
mov edx, dword [esp + 0x1c]
test byte [edx + 0x15], 1
je case.default.0x416755
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 8]
mov dword [esp + 0x68], eax
mov eax, dword [eax - 4]
lea edi, [eax + eax*8]
mov eax, dword [ecx]
mov dword [esp + 0x48], edi
mov dword [esp + 0x38], eax
mov edi, dword [eax + edi*8 + 0xc]
test edi, edi
je 0x417a58
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4179e0
sub ecx, esi
mov esi, dword [edx + 0x10]
and ecx, 0x3fffffff
add esi, ecx
cmp esi, dword [edx + 8]
jb 0x417a0a
push ecx
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.00417f30
add esp, 4
jmp 0x417a23
test ecx, ecx
je 0x417a27
mov eax, dword [edx + 4]
push ecx
sub eax, ecx
mov dword [edx + 0x10], esi
add eax, esi
push edi
push eax
call fcn.004bf9c0
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x10]
inc ecx
cmp ecx, dword [edx + 8]
jb 0x417a49
mov ecx, dword [esp + 0x1c]
mov edx, 0x4fba18
push 1
call fcn.00417f30
mov edx, dword [esp + 0x20]
add esp, 4
jmp 0x417a54
mov eax, dword [edx + 4]
mov dword [edx + 0x10], ecx
mov byte [eax + ecx - 1], 0x2e
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
mov edi, dword [eax + edi*8 + 0x10]
test edi, edi
jne 0x417a68
xor ecx, ecx
jmp 0x417a7f
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417a70
sub ecx, esi
and ecx, 0x3fffffff
mov esi, dword [edx + 0x10]
add esi, ecx
cmp esi, dword [edx + 8]
jb 0x417a9a
push ecx
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.00417f30
add esp, 4
jmp 0x417ab3
test ecx, ecx
je 0x417ab7
mov eax, dword [edx + 4]
push ecx
sub eax, ecx
mov dword [edx + 0x10], esi
add eax, esi
push edi
push eax
call fcn.004bf9c0
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
xor edi, edi
mov al, byte [esp + 0x1b]
xor esi, esi
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x24]
jmp 0x416bf5
test esi, esi
je 0x417af1
mov eax, dword [esp + 0x24]
push esi
push eax
mov eax, dword [edx + 4]
sub eax, esi
mov dword [edx + 0x10], ecx
add eax, ecx
push eax
call fcn.004bf9c0
add esp, 0xc
mov edx, dword [esp + 0x1c]
cmp byte [esp + 0x1b], 0
je 0x417b72
mov esi, dword [edx + 0x10]
mov eax, edi
cdq
xor ecx, ecx
add esi, eax
adc ecx, edx
mov edx, dword [esp + 0x1c]
js 0x417b26
jg 0x417b11
cmp esi, dword [edx + 8]
jb 0x417b26
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.00417d00
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
jle 0x417b72
mov ecx, dword [edx + 0x10]
dec edi
mov eax, dword [edx + 4]
mov byte [ecx + eax], 0x20
inc dword [edx + 0x10]
test edi, edi
jg 0x417b26
jmp 0x417b72
mov edi, dword [edx + 0x10]
add edi, esi
cmp edi, dword [edx + 8]
jb 0x417b55
mov edx, ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00417f30
add esp, 4
jmp 0x417b6e
test esi, esi
je 0x417b72
mov eax, dword [edx + 4]
push esi
sub eax, esi
mov dword [edx + 0x10], edi
push ecx
add eax, edi
push eax
call fcn.004bf9c0
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x74]
test edi, edi
je 0x417bc5
mov ecx, dword [edx]
test ecx, ecx
je 0x417bb2
cmp dword [ecx + 0x1e8], 0
je 0x417b92
mov edx, edi
call fcn.004159a0
jmp 0x417bbb
cmp edi, dword [ecx + 0x138]
jb 0x417bb2
cmp edi, dword [ecx + 0x13c]
jae 0x417bb2
mov eax, dword [ecx + 0x134]
mov dword [edi], eax
mov dword [ecx + 0x134], edi
jmp 0x417bbf
push edi
call fcn.00415930
add esp, 4
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x74], eax
mov esi, dword [esp + 0x64]
inc esi
movsx eax, byte [esi]
test eax, eax
jne 0x416393
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0x10]
inc ecx
cmp ecx, dword [edx + 8]
jb 0x417c1b
mov ecx, dword [esp + 0x1c]
mov edx, 0x4fba00
push 1
call fcn.00417f30
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 4]
mov dword [edx + 0x10], ecx
mov byte [eax + ecx - 1], 0x25
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret