Function at 0x470b80
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x491024]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 8]
push 0x60
mov dword [esp + 0x30], eax
lea eax, [esp + 0xa4]
push 0
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0xa0], esi
movzx eax, word [eax]
cmp ax, 0x40
jle 0x470c0c
push 0x40
push str.at_most__d_tables_in_a_join
push esi
call fcn.0041c540
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004787cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
and ecx, 0x40
mov dword [esp + 0x5c], ecx
je 0x470c1f
mov eax, 1
jmp 0x470c20
cwde
mov ecx, dword [esi]
imul esi, eax, 0x58
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
add esi, 0x3f
and esi, 0xfffffff8
lea edx, [esi + 0x26c]
call fcn.0041a540
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x470c5e
lea ecx, [esi + 0x26c]
push ecx
push 0
push edx
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x14]
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x38], 0
je 0x470c85
mov ecx, eax
call fcn.0041a2e0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004787cb
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 4], eax
call fcn.00434fb0
mov ecx, dword [esp + 8]
push 0x104
push 0
mov dword [ecx + 0x18], eax
lea eax, [ecx + esi]
mov dword [esp + 0xac], eax
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov word [ecx + 0xa], ax
mov eax, dword [esp + 0x18]
movsd xmm0, qword [eax + 0x1b8]
lea eax, [ecx + 0x38]
movsd qword [ecx + 0x28], xmm0
mov esi, dword [esp + 0xac]
mov dword [esp + 0xdc], eax
add esi, 0x168
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
push esi
mov dword [esp + 0x54], esi
test byte [eax + 0x34], 0x20
mov eax, 0
cmove eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0xb0]
add esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [ecx + 0x28]
mov dword [ecx], edx
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + 4], esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov word [ecx + 0x16], ax
cmp dword [edx + 0x15c], 0
jne 0x470d8f
mov eax, dword [edx]
test byte [eax + 0x34], 8
jne 0x470d8f
mov dword [esp + 0x108], edx
lea ecx, [esp + 0x100]
mov edx, edi
mov dword [esp + 0x100], 0x449020
mov dword [esp + 0x104], 0
call fcn.00443280
mov ecx, dword [esp + 0xa4]
mov edx, edi
push 0x45
call fcn.0046b860
add esp, 4
test edi, edi
je 0x470dcf
cmp dword [esp + 0x20], 0
je 0x470db8
mov ecx, edi
call fcn.00446740
test eax, eax
je 0x470dcf
mov eax, dword [esp + 8]
mov edx, edi
mov ecx, dword [esp + 0x10]
push 8
push dword [eax + 0x18]
call fcn.004495b0
add esp, 8
mov eax, dword [esp + 0x14]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
cmp cx, word [eax]
jge 0x470e3d
lea edi, [eax + 0x18]
mov ecx, dword [esi]
mov eax, dword [edi + 0x1c]
mov dword [esi + ecx*4 + 4], eax
inc dword [esi]
mov eax, dword [edi]
test eax, eax
je 0x470e26
test byte [eax + 0x2a], 0x10
je 0x470e26
mov esi, dword [esp + 0xa4]
mov eax, edx
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
or dword [esi + 8], ecx
or dword [esi + 0xc], edx
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
inc edx
add edi, 0x48
mov dword [esp + 0x1c], edx
movsx eax, word [eax]
cmp edx, eax
jl 0x470de3
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xa4]
mov esi, dword [edi + 0x18]
sub esi, 1
js 0x470e6d
nop dword [eax]
push esi
mov edx, edi
mov ecx, eax
call fcn.0046c550
mov eax, dword [esp + 0x18]
add esp, 4
sub esi, 1
jns 0x470e50
mov edi, dword [esp + 0xa4]
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x38], 0
jne 0x47136a
mov eax, dword [esp + 0x18]
mov esi, eax
test eax, eax
je 0x470ea5
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push edi
call fcn.0046cee0
add esp, 8
test eax, eax
je 0x470ea5
mov eax, dword [esp + 8]
xor esi, esi
mov byte [eax + 0xe], 1
mov edi, dword [esp + 0x20]
xor edx, edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc4], esi
or esi, 0xffffffff
mov dword [esp + 0xb8], 0xffffffff
mov dword [esp + 0xbc], 0xffffffff
mov dword [esp + 0xc0], eax
mov dword [esp + 0xd0], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0xcc], edx
mov dword [esp + 0x30], ecx
test edi, edi
jle 0x4713a4
lea esi, [edi - 1]
mov dword [esp + 0x18], esi
movsd xmm0, qword [0x48bc68]
xor eax, eax
xorps xmm2, xmm2
mov dword [esp + 0x58], eax
or ecx, 0xffffffff
movaps xmmword [esp + 0x70], xmm2
movsd xmm1, qword [esp + 0x78]
cmp edx, esi
mov dword [esp + 0x4c], ecx
setl al
movaps xmmword [esp + 0x100], xmm2
movaps xmmword [esp + 0x80], xmm2
movq qword [esp + 0x90], xmm2
movsd qword [esp + 0x50], xmm0
mov dword [esp + 0x44], eax
movsd qword [esp + 0x60], xmm1
test ecx, ecx
jns 0x471211
mov esi, dword [esp + 0x14]
lea edi, [edx*8 + 1]
add edi, edx
mov dword [esp + 0xc], edx
lea edi, [esi + edi*8]
mov dword [esp + 0xa8], edi
cmp edx, dword [esp + 0x20]
jge 0x471202
mov esi, dword [esp + 8]
imul eax, edx, 0x58
sub esi, 0xffffff80
add eax, esi
mov dword [esp + 0x40], eax
mov al, byte [edi + 0x20]
mov ecx, 0
and al, 0xa
setne cl
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0xc], edx
je 0x470fb0
test al, al
jne 0x471202
mov ecx, dword [esp + 0x48]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x470fce
mov esi, dword [edi + 0x2c]
add ecx, 4
cmp dword [ecx], esi
je 0x471010
inc eax
add ecx, 4
cmp eax, edx
jl 0x470fc2
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov ecx, edx
mov eax, esi
and ecx, dword [esp + 0xb8]
and eax, dword [esp + 0xbc]
or ecx, eax
jne 0x471027
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
cmp ecx, edx
lea eax, [edx + 1]
cmovne eax, edx
mov edx, eax
mov dword [esp + 0x38], edx
jmp 0x4711e4
xor edx, edx
xor esi, esi
bts edx, eax
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
cmovae esi, edx
jmp 0x470fdf
cmp dword [esp + 0x44], 0
je 0x47103e
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], esi
jmp 0x47105a
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0x58]
cmp dword [edi + 0x44], 0
lea eax, [ecx + 1]
cmovne eax, ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x10]
test byte [eax + 0x2a], 0x10
je 0x471091
mov esi, dword [esp + 0x40]
lea eax, [esi + 8]
mov dword [esp + 0xc8], eax
call fcn.0046ddd0
jmp 0x47109a
call fcn.0046e4f0
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x44], 0
mov edx, dword [esp + 0x38]
je 0x4711a6
movsd xmm0, qword [esp + 0xf0]
movsd qword [esi], xmm0
movsd xmm0, qword [esp + 0xf0]
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0xfc]
and ecx, dword [esp + 0xb8]
and eax, dword [esp + 0xbc]
or ecx, eax
mov edi, dword [esp + 0xa8]
jne 0x4711cb
mov eax, dword [esp + 0x58]
test eax, eax
je 0x471109
cmp dword [edi + 0x44], 0
je 0x471109
test dword [esp + 0xd8], 0x100f3000
je 0x4711cb
cmp dword [esp + 0x4c], 0
jl 0x47114a
movsd xmm1, qword [esp + 0x50]
comisd xmm1, xmm0
ja 0x47114a
comisd xmm0, xmm1
ja 0x4711cb
mov ax, word [esp + 0xde]
cmp ax, word [esp + 0x76]
ja 0x47114a
movsd xmm1, qword [esp + 0x60]
comisd xmm1, xmmword [esp + 0xe0]
jbe 0x4711d1
movups xmm0, xmmword [esp + 0xe8]
mov ecx, dword [esp + 0xc]
movups xmm2, xmmword [esp + 0xd8]
mov dword [esp + 0x4c], ecx
movups xmmword [esp + 0x80], xmm0
movq xmm0, qword [esp + 0xf8]
movaps xmmword [esp + 0x70], xmm2
movsd xmm1, qword [esp + 0x78]
movq qword [esp + 0x90], xmm0
movsd xmm0, qword [esp + 0x88]
movaps xmmword [esp + 0x100], xmm2
movsd qword [esp + 0x50], xmm0
movsd qword [esp + 0x60], xmm1
jmp 0x4711dd
cmp edx, dword [esp + 0x18]
jge 0x4710b6
movsd xmm0, qword [esp + 0xf0]
divsd xmm0, qword [esi]
movsd qword [esp + 0xf0], xmm0
jmp 0x4710bf
movsd xmm1, qword [esp + 0x60]
mov ecx, dword [esp + 0xc]
movaps xmm2, xmmword [esp + 0x100]
cmp dword [esp + 0x3c], 0
jne 0x471202
add dword [esp + 0x40], 0x58
inc ecx
add edi, 0x48
mov dword [esp + 0xc], ecx
mov dword [esp + 0xa8], edi
cmp ecx, dword [esp + 0x20]
jl 0x470f91
sub dword [esp + 0x44], 1
mov ecx, dword [esp + 0x4c]
jns 0x470f54
movd edi, xmm2
test edi, 0x40000000
je 0x471225
mov eax, dword [esp + 8]
mov byte [eax + 0xe], 2
mov edx, dword [esp + 0x30]
lea ecx, [ecx + ecx*8]
mov esi, dword [esp + 0x14]
movq xmm0, qword [esp + 0x80]
and dword [esp + 0x1c], edi
mov dword [esp + 0x3c], ecx
movups xmmword [edx], xmm2
movq qword [edx + 0x10], xmm0
mov eax, dword [esi + ecx*8 + 0x34]
mov dword [edx + 0x1c], eax
test edi, 0x200f0000
je 0x471283
cmp word [esp + 0x5c], 0
je 0x471270
test edi, 0x20000000
jne 0x471270
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x20], eax
jmp 0x47128a
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x48]
mov dword [edx + 0x20], eax
inc dword [esi + 0x48]
mov esi, dword [esp + 0x14]
jmp 0x47128a
mov dword [edx + 0x20], 0xffffffff
mov edx, dword [esp + 0x48]
xor eax, eax
mov edx, dword [edx]
test edx, edx
jle 0x4712b1
mov esi, dword [esi + ecx*8 + 0x34]
mov ecx, dword [esp + 0x48]
add ecx, 4
cmp dword [ecx], esi
je 0x471340
inc eax
add ecx, 4
cmp eax, edx
jl 0x4712a1
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
not ecx
and dword [esp + 0xb8], ecx
not edx
mov ecx, dword [esp + 0x30]
and dword [esp + 0xbc], edx
comisd xmm1, xmmword [0x48bb98]
mov edx, dword [esp + 0x10]
mov byte [ecx + 0x34], al
jb 0x4712fd
mulsd xmm1, qword [edx + 0x1b8]
movsd qword [edx + 0x1b8], xmm1
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + eax*8 + 0x4c]
test eax, eax
je 0x471315
test edi, 0xf0000
je 0x47135a
mov eax, dword [esp + 0xcc]
add ecx, 0x58
mov edi, dword [esp + 0x20]
inc eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0x30], ecx
cmp eax, edi
jge 0x4713a0
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
jmp 0x470f03
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x4712c2
push dword [eax]
push str.cannot_use_index:__s
push edx
call fcn.0041c540
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
movsd xmm0, qword [ecx + 0x28]
mov edx, ecx
mov ecx, dword [esp + 0x24]
movsd qword [eax + 0x1b8], xmm0
call fcn.00470ad0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004787cb
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x44], 0
jne 0x47136e
mov edx, dword [esp + 0x24]
cmp byte [edx + 0x38], 0
jne 0x47136e
test edi, edi
je 0x4713c2
mov ax, word [ecx - 0x52]
jmp 0x4713c4
xor eax, eax
mov ecx, dword [esp + 8]
mov word [ecx + 8], ax
and esi, 0x2000000
je 0x4713e3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4713e3
mov ax, word [eax]
mov word [ecx + 8], ax
test byte [ebp + 0x14], 4
je 0x4713f8
test esi, esi
je 0x4713f8
mov byte [ecx + 0xc], 1
and dword [ecx + 0x38], 0xffbfffff
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x1b0]
test esi, esi
je 0x471416
cmp esi, eax
je 0x471418
mov dword [eax + 0x15c], 0xffffffff
jmp 0x471418
mov esi, eax
cmp dword [esi + 0x15c], 0
jne 0x471446
mov ecx, esi
call fcn.00461230
test eax, eax
je 0x471446
push 0
push 0
mov edx, 1
mov ecx, eax
call fcn.00434dd0
add esp, 8
inc eax
mov dword [esi + 0x15c], eax
mov ecx, dword [esp + 8]
movsd xmm0, qword [0x48bb98]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
movsd qword [ecx + 0x30], xmm0
test edi, edi
jle 0x47170b
mov dword [esp + 0x28], edi
lea edi, [ecx + 0x38]
nop word [eax + eax]
movzx eax, byte [edi + 0x34]
mov edx, dword [esp + 0x14]
movsd xmm0, qword [edi + 8]
mov edi, 0xfff0bdc0
mulsd xmm0, qword [ecx + 0x30]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
mov esi, dword [edx + eax*8 + 0x10]
lea eax, [edx + eax*8]
mov dword [esp + 0xc], eax
movsd qword [ecx + 0x30], xmm0
mov edx, dword [esi + 0x40]
test edx, edx
je 0x4714d3
mov eax, dword [esp + 0x24]
xor edi, edi
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x4714d3
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x4714d3
inc edi
add eax, 0x10
cmp edi, ecx
jl 0x4714c7
mov cl, byte [esi + 0x2a]
test cl, 2
jne 0x4715cb
cmp dword [esi + 0xc], 0
jne 0x4715cb
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, 0x8000000
je 0x471530
mov eax, dword [esi + 0x38]
test eax, eax
je 0x47150c
mov ecx, dword [esp + 0x24]
cmp dword [eax], ecx
je 0x47150c
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x471501
mov esi, dword [esp + 0xc]
mov edx, 0x87
mov ecx, dword [esp + 0x2c]
push 0xfffffffffffffff6
push eax
push 0
push 0
push dword [esi + 0x2c]
call fcn.00434e30
add esp, 0x14
jmp 0x4715cf
test cl, 0x10
jne 0x4715cb
test eax, 0x400000
jne 0x4715b6
test byte [ebp + 0x14], 0x10
jne 0x4715b6
mov ecx, dword [esp + 8]
xor eax, eax
cmp byte [ecx + 0xc], al
mov ecx, dword [esp + 0x10]
setne al
add eax, 0x27
push eax
mov eax, dword [esp + 0x10]
push esi
push edi
mov edx, dword [eax + 0x2c]
call fcn.00457b40
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp byte [eax + 0xc], 0
jne 0x4715cb
cmp word [esi + 0x26], 0x40
jge 0x4715cb
mov eax, dword [esp + 0xc]
xor esi, esi
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x3c]
mov eax, edx
or eax, ecx
je 0x47159f
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x471592
mov eax, dword [esp + 0x2c]
mov ecx, eax
push 0xfffffffffffffff2
push esi
mov edx, dword [eax + 0x1c]
dec edx
call fcn.00435360
add esp, 8
jmp 0x4715cb
push dword [esi]
mov ecx, dword [esp + 0x14]
mov edx, edi
push 0
push dword [esi + 0x20]
call fcn.0044cf50
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
test eax, 0x20000000
je 0x4715fe
mov edx, dword [esp + 0xa4]
push ecx
push dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x24]
push esi
call fcn.0046d500
add esp, 0x10
jmp 0x471693
test eax, 0xf0000
je 0x471693
mov esi, dword [ecx + 0x10]
mov edx, esi
mov ecx, dword [esp + 0x10]
call fcn.00451980
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 0x1c]
cmp dword [eax + 0x20], esi
jg 0x47164f
mov ecx, eax
call fcn.00434c30
test eax, eax
je 0x47164b
mov esi, 1
jmp 0x47167f
mov eax, dword [esp + 0x2c]
inc dword [eax + 0x1c]
lea ecx, [esi + esi*4]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*4], 0x27
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x2c]
mov edx, esi
push 0xfffffffffffffff0
push dword [esp + 0x1c]
call fcn.00435360
add esp, 8
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.00451470
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 4]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x4716d0
mov esi, dword [esp + 0xc]
add ecx, 4
mov esi, dword [esi + 0x2c]
nop word [eax + eax]
cmp dword [ecx], esi
je 0x4717a6
inc eax
add ecx, 4
cmp eax, edx
jl 0x4716c0
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
not ecx
and dword [esp + 0x1c], ecx
not edx
and dword [esp + 0x30], edx
add edi, 0x58
sub dword [esp + 0x28], 1
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], edi
jne 0x471480
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x38], 0
jne 0x4717c0
xor esi, esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
test edi, edi
jle 0x471790
lea edi, [ecx + 0x64]
nop dword [eax]
push dword [ebp + 0x14]
movzx eax, byte [edi + 8]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [edi - 0x2c]
push esi
push eax
call fcn.0046f5a0
push dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, esi
push dword [esp + 0x3c]
push dword [ebp + 0x14]
call fcn.0046f7f0
mov ecx, dword [edi]
lea edi, [edi + 0x58]
mov dword [esp + 0x44], eax
inc esi
mov eax, dword [esp + 0x24]
add esp, 0x1c
mov dword [esp + 0x18], edx
mov dword [eax + 0x14], ecx
cmp esi, dword [esp + 0x20]
jl 0x471740
mov ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
xor ecx, esp
call fcn.004787cb
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x4716e1
mov eax, dword [esp + 0x10]
jmp 0x471372