Function at 0x46ff50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x814
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [esp + 0x384]
xor ecx, ecx
mov dword [esp + 0x378], eax
mov eax, dword [ebx + 4]
push esi
mov dword [esp + 0x380], ecx
mov dword [esp + 0x384], 0x80000040
cmp byte [eax + 0xd8], 7
push edi
mov dword [esp + 0x2c], ecx
je 0x46ff9c
mov eax, dword [eax + 0xb8]
jmp 0x46ffa5
mov edx, dword [ebx + 8]
mov eax, dword [edx + 0xb8]
mov esi, dword [eax + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [0x4c6060]
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], bind
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x20]
lea edx, [esi*4 + 0x10]
and edx, 0xfffffff0
lea edi, [ecx + edx]
cmp edi, dword [eax + 0x2c]
ja 0x46ffe4
mov dword [eax + 0x20], edi
mov eax, ecx
jmp 0x46ffee
mov edi, dword [eax]
push edx
mov edx, dword [edi + 0x14]
mov ecx, eax
call edx
mov ecx, dword [ebx + 4]
or esi, 0x80000000
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
cmp byte [ecx + 0xd8], 7
je 0x470048
mov edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + ecx*4], edx
fld dword [ebx]
mov eax, dword [ebx + 4]
add dword [esp + 0x14], 1
add eax, 0xe0
push eax
push ecx
add eax, 0x40
fstp dword [esp]
push eax
call fcn.004686f0
mov edx, dword [ebx + 4]
movzx eax, word [edx + 0x94]
mov ecx, dword [esi]
add esp, 0xc
mov byte [eax + ecx], 4
mov edx, dword [ebx + 8]
cmp byte [edx + 0xd8], 7
je 0x470091
mov ecx, dword [esp + 0x14]
mov eax, edx
mov edx, dword [esp + 0x10]
mov dword [edx + ecx*4], eax
fld dword [ebx]
mov eax, dword [ebx + 8]
add dword [esp + 0x14], 1
add eax, 0xe0
push eax
push ecx
add eax, 0x40
fstp dword [esp]
push eax
call fcn.004686f0
mov eax, dword [ebx + 8]
movzx ecx, word [eax + 0x94]
mov edx, dword [esi]
add esp, 0xc
mov byte [ecx + edx], 4
mov ecx, dword [ebx + 0x10]
lea eax, [esp + 0x5c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebp + 0x18]
fld dword [eax + 0xcc]
xor esi, esi
mov edi, 0x80000040
push ecx
mov dword [esp + 0x5c], esi
fstp dword [esp]
mov dword [esp + 0x60], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push ebx
call edx
mov eax, dword [esp + 0x54]
cmp eax, esi
jne 0x470311
mov esi, dword [ebx + 4]
cmp byte [esi + 0xd8], 7
je 0x47018e
add esi, 0xe0
lea eax, [esi + 0x70]
push eax
mov ecx, esi
call fcn.0040a7f0
fld dword [esi + 0x80]
fstp dword [esp + 0x28]
fld dword [esi + 0x84]
fstp dword [esp + 0x20]
fld dword [esi + 0x88]
fstp dword [esp + 0x24]
fld dword [esi + 0x10]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fld dword [esp + 0x28]
fld st(0)
fmul dword [esi]
faddp st(3)
fld dword [esi + 0x20]
fld dword [esp + 0x24]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fstp dword [esp + 0x30]
fld dword [esi + 0x14]
fmul st(2)
fld dword [esi + 4]
fmul st(2)
faddp st(1)
fld dword [esi + 0x24]
fmul st(4)
faddp st(1)
fstp dword [esp + 0x34]
fld dword [esi + 0x18]
fmulp st(2)
fmul dword [esi + 8]
faddp st(1)
fld dword [esi + 0x28]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x38]
fld dword [esi + 0x50]
fsub dword [esp + 0x30]
fstp dword [esi + 0x30]
fld dword [esi + 0x54]
fsub dword [esp + 0x34]
fstp dword [esi + 0x34]
fld dword [esi + 0x58]
fsub dword [esp + 0x38]
fstp dword [esi + 0x38]
fld dword [esi + 0x5c]
fsub qword [0x4bea18]
fstp dword [esi + 0x3c]
mov esi, dword [ebx + 8]
cmp byte [esi + 0xd8], 7
je 0x470251
add esi, 0xe0
lea ecx, [esi + 0x70]
push ecx
mov ecx, esi
call fcn.0040a7f0
fld dword [esi + 0x80]
fstp dword [esp + 0x28]
fld dword [esi + 0x84]
fstp dword [esp + 0x20]
fld dword [esi + 0x88]
fstp dword [esp + 0x24]
fld dword [esi + 0x10]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fld dword [esi]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fld dword [esi + 0x20]
fld dword [esp + 0x24]
fld st(0)
fmulp st(2)
fxch st(2)
faddp st(1)
fstp dword [esp + 0x30]
fld dword [esi + 0x14]
fmul st(2)
fld dword [esi + 4]
fmul st(4)
faddp st(1)
fld dword [esi + 0x24]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x34]
fld dword [esi + 0x18]
fmulp st(2)
fld dword [esi + 8]
fmulp st(3)
fxch st(1)
faddp st(2)
fmul dword [esi + 0x28]
faddp st(1)
fstp dword [esp + 0x38]
fld dword [esi + 0x50]
fsub dword [esp + 0x30]
fstp dword [esi + 0x30]
fld dword [esi + 0x54]
fsub dword [esp + 0x34]
fstp dword [esi + 0x34]
fld dword [esi + 0x58]
fsub dword [esp + 0x38]
fstp dword [esi + 0x38]
fld dword [esi + 0x5c]
fsub qword [0x4bea18]
fstp dword [esi + 0x3c]
mov eax, dword [esp + 0x58]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
js 0x470285
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov esi, eax
call edi
mov edx, dword [esp + 0x50]
push 0x17
lea ecx, [esi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [0x4c6060]
mov esi, dword [esp + 0x1c]
push eax
call edi
cmp esi, dword [eax + 0x28]
mov dword [eax + 0x20], esi
jne 0x4702a3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push esi
call eax
mov eax, dword [esp + 0x18]
test eax, eax
js 0x4702d1
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov esi, eax
call edi
mov ecx, dword [esp + 0x10]
push 0x17
lea edx, [esi*4]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esp + 0x388]
test eax, eax
js 0x470305
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov esi, eax
call edi
mov edx, dword [esp + 0x380]
lea ecx, [esi + esi*2]
add ecx, ecx
push 0x17
add ecx, ecx
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov dword [esp + 0x30], edx
jle 0x470329
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], eax
jmp 0x47032d
mov dword [esp + 0x34], esi
call fcn.00483750
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 0xc]
push ecx
push edx
push esi
call fcn.0045e000
lea eax, [esp + 0x178]
mov dword [esp + 0x16c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
lea edx, [esp + 0x27c]
mov dword [esp + 0x168], edi
mov dword [esp + 0x278], edi
mov edi, dword [ebp + 0x1c]
mov byte [esp + 0xe], 1
mov dword [esp + 0x164], ecx
mov dword [esp + 0x270], edx
mov dword [esp + 0x274], ecx
mov dword [esp + 0x20], eax
jle 0x4706c7
xor eax, eax
cmp byte [esp + 0xe], 0
mov dword [esp + 0x274], eax
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jne 0x47040c
cmp eax, dword [esp + 0x384]
jge 0x4706a6
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
push eax
push edx
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x38]
push eax
mov eax, dword [edx + 0x6c]
lea ecx, [esp + 0x394]
push ecx
push eax
push esi
mov dword [esp + 0x74], 0
call fcn.0046e360
add esp, 0x20
cmp dword [esp + 0x54], 0
je 0x4706a6
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x270]
push ecx
lea edx, [esp + 0x164]
push edx
mov edx, dword [ebp + 0x10]
fld dword [edx]
push eax
mov eax, dword [ebx]
lea ecx, [esp + 0x5c]
push ecx
push ecx
mov ecx, dword [ebp + 0x18]
fstp dword [esp]
mov edx, dword [ecx + 0x6c]
push eax
push edx
call fcn.0046fa60
mov eax, dword [esp + 0x180]
mov ecx, dword [esp + 0x17c]
push eax
push ecx
lea edx, [esp + 0x73]
push esi
push edx
mov byte [esp + 0x3a], 0
call fcn.0045de60
add esp, 0x2c
cmp byte [eax], 0
je 0x47062e
mov eax, dword [esp + 0x274]
mov ecx, dword [esp + 0x270]
push eax
push ecx
lea edx, [esp + 0x17]
push esi
push edx
call fcn.0045e360
add esp, 0x10
cmp byte [eax], 0
je 0x47062e
mov eax, dword [esp + 0x384]
mov ecx, dword [esp + 0x274]
add ecx, eax
cmp dword [ebx + 0xc], ecx
jl 0x47062e
mov ecx, dword [esp + 0x164]
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 4]
add edx, ecx
add edx, eax
cmp dword [ebx + 4], edx
jl 0x47062e
mov edx, dword [esp + 0x54]
add edx, eax
cmp dword [ebx + 8], edx
jl 0x47062e
mov eax, dword [esp + 0x160]
push ecx
push eax
push esi
call fcn.0045e000
mov edx, dword [esp + 0x280]
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x38c]
push ecx
push edx
push eax
push esi
call fcn.0045e4f0
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x30]
add esp, 0x1c
xor eax, eax
test ecx, ecx
jle 0x470553
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
movzx edi, word [edi + 0x94]
mov ebx, dword [ebp + 0x20]
mov ebx, dword [ebx]
cmp byte [edi + ebx], 0x10
jne 0x470549
sub ecx, 1
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + ecx*4]
mov dword [edx + eax*4], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub eax, 1
add eax, 1
cmp eax, ecx
jl 0x47051c
mov edi, dword [ebp + 0x1c]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00471840
mov eax, dword [esp + 0x164]
mov edx, dword [esp + 0x14]
lea ecx, [eax + edx]
mov eax, dword [esp + 0x18]
and eax, 0x3fffffff
cmp eax, ecx
jge 0x47059b
add eax, eax
cmp ecx, eax
jge 0x47058b
mov ecx, eax
push 4
push ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.004026b0
add esp, 0xc
xor ecx, ecx
cmp dword [esp + 0x164], ecx
jle 0x4705d5
mov edx, dword [esp + 0x160]
mov eax, dword [edx + ecx*4]
cmp byte [eax + 0xd8], 6
je 0x4705c9
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edx + ebx*4], eax
add dword [esp + 0x14], 1
add ecx, 1
cmp ecx, dword [esp + 0x164]
jl 0x4705a6
mov eax, dword [esp + 0x274]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x388]
push edx
call fcn.0046e710
mov eax, dword [ebp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x394]
push edx
call fcn.0046e7d0
push 1
push esi
call fcn.0045de90
add esp, 0x20
cmp dword [esp + 0x274], 0
jne 0x47039c
cmp dword [esp + 0x164], 0
jne 0x47039c
jmp 0x4706a6
mov ecx, dword [ebp + 0x20]
xor eax, eax
cmp dword [esp + 0x54], eax
jle 0x47065d
lea esp, [esp]
mov edx, dword [esp + 0x50]
mov edx, dword [edx + eax*4]
movzx edx, word [edx + 0x94]
mov ebx, dword [ecx]
add eax, 1
mov byte [edx + ebx], 4
cmp eax, dword [esp + 0x54]
jl 0x470640
xor eax, eax
cmp dword [esp + 0x164], eax
jle 0x470693
jmp 0x470670
mov edx, dword [esp + 0x160]
mov edx, dword [edx + eax*4]
movzx edx, word [edx + 0x94]
mov ebx, dword [ecx]
add eax, 1
mov byte [edx + ebx], 1
cmp eax, dword [esp + 0x164]
jl 0x470670
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
cmp eax, 2
je 0x470768
push 0
push esi
call fcn.0045de90
mov eax, dword [esp + 0x28]
sub eax, 1
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
jg 0x47039c
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x38]
je 0x470918
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.0046d660
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x6c]
push 0
push eax
lea ecx, [esp + 0x390]
push ecx
lea edx, [esp + 0x22]
push esi
push edx
call fcn.0046ea70
mov al, byte [esp + 0x2a]
add esp, 0x1c
test al, al
jne 0x470918
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x20], edx
sub dword [esp + 0x20], 1
js 0x4707d8
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x30]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call fcn.004874b0
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.0046d660
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x6c]
push 0
push eax
lea ecx, [esp + 0x3a0]
push ecx
lea edx, [esp + 0x33]
push esi
push edx
call fcn.0046ea70
mov al, byte [eax]
add esp, 0x2c
test al, al
je 0x470713
jmp 0x470918
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x10]
fld dword [edx]
push edi
push eax
push ecx
push ecx
fstp dword [esp]
call fcn.0046e890
xor esi, esi
add esp, 0x10
cmp dword [edi + 4], esi
jle 0x4707aa
mov ebx, dword [ebp + 0x18]
lea ecx, [ecx]
mov eax, dword [ebx + 0x6c]
mov ecx, dword [edi]
mov edx, dword [ecx + esi*4]
push eax
push edx
call fcn.00456930
add esi, 1
add esp, 8
cmp esi, dword [edi + 4]
jl 0x470790
mov eax, dword [esp + 0x278]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edi + 4], 0
js 0x470a1b
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
jmp 0x470a00
test al, al
jne 0x470918
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x69c]
lea ecx, [esp + 0x690]
push ecx
mov dword [esp + 0x694], eax
mov eax, dword [edx + 0x6c]
push eax
lea ecx, [esp + 0x388]
push ecx
lea edx, [esp + 0x1b]
push esi
push edx
mov dword [esp + 0x6a8], 0
mov dword [esp + 0x6ac], 0x80000020
call fcn.0046ea70
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
add esp, 0x14
lea edx, [esp + 0x690]
push edx
call eax
cmp eax, 2
jne 0x4708e1
mov ecx, dword [ebp + 0x20]
fld dword [ebx]
mov edx, dword [esp + 0x24]
push edi
push ecx
push edx
push ecx
fstp dword [esp]
call fcn.0046e890
xor esi, esi
add esp, 0x10
cmp dword [edi + 4], esi
jle 0x470880
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx + 0x6c]
mov ecx, dword [edi]
mov edx, dword [ecx + esi*4]
push eax
push edx
call fcn.00456930
add esi, 1
add esp, 8
cmp esi, dword [edi + 4]
jl 0x470866
mov eax, dword [esp + 0x698]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edi + 4], 0
js 0x4708c0
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call esi
mov edx, dword [esp + 0x690]
lea ecx, [edi + edi*2]
add ecx, ecx
push 0x17
add ecx, ecx
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esp + 0x278]
test eax, eax
js 0x470a1b
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
jmp 0x470a00
mov eax, dword [esp + 0x698]
test eax, eax
js 0x470918
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [0x4c6060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x690]
lea ecx, [ebx + ebx*2]
add ecx, ecx
push 0x17
add ecx, ecx
push ecx
push edx
mov ecx, eax
call fcn.004023e0
cmp dword [edi + 4], 0
jne 0x470967
lea eax, [esp + 0x30]
push eax
push 0
mov ecx, edi
call fcn.00471900
cmp dword [esp + 0x34], 0
mov ecx, dword [edi]
mov edx, dword [ecx]
movzx eax, word [edx + 0x94]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebx]
mov byte [eax + ecx], 0x10
je 0x470967
lea edx, [esp + 0x34]
push edx
push 1
mov ecx, edi
call fcn.00471900
mov eax, dword [edi]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + 0x94]
mov eax, dword [ebx]
mov byte [edx + eax], 0x10
xor ebx, ebx
cmp dword [edi + 4], ebx
jle 0x470995
mov edi, edi
mov ecx, dword [edi]
mov edx, dword [ecx + ebx*4]
mov eax, dword [ebp + 0x10]
fld dword [eax]
add edx, 0xe0
push edx
push ecx
fstp dword [esp]
call fcn.00469110
add ebx, 1
add esp, 8
cmp ebx, dword [edi + 4]
jl 0x470970
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call fcn.0045e400
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.0046e970
xor esi, esi
add esp, 0x1c
cmp dword [edi + 4], esi
jle 0x4709e1
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebx + 0x6c]
mov eax, dword [edi]
mov ecx, dword [eax + esi*4]
push edx
push ecx
call fcn.00456930
add esi, 1
add esp, 8
cmp esi, dword [edi + 4]
jl 0x4709c7
mov eax, dword [esp + 0x278]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
js 0x470a1b
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
mov edi, eax
push edx
call esi
mov edx, dword [esp + 0x270]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esp + 0x168]
test eax, eax
js 0x470a4e
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call esi
mov edx, dword [esp + 0x160]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esp + 0x58]
test eax, eax
js 0x470a7b
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call esi
mov edx, dword [esp + 0x50]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [0x4c6060]
mov edi, dword [esp + 0x1c]
push eax
call esi
cmp edi, dword [eax + 0x28]
mov dword [eax + 0x20], edi
jne 0x470a99
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push edi
call eax
mov eax, dword [esp + 0x18]
test eax, eax
js 0x470ac7
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov edi, eax
call esi
mov ecx, dword [esp + 0x10]
push 0x17
lea edx, [edi*4]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esp + 0x388]
test eax, eax
js 0x470afb
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov edi, eax
call esi
mov edx, dword [esp + 0x380]
lea ecx, [edi + edi*2]
add ecx, ecx
push 0x17
add ecx, ecx
push ecx
push edx
mov ecx, eax
call fcn.004023e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret