Function at 0x46fc40
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xb828]
mov ebx, dword [eax + 0x3c]
xor ecx, ecx
push edi
push ecx
mov byte [ebp - 6], cl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], ecx
mov byte [ebp - 5], cl
and ebx, 0xfffff
push ebx
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0xec]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x17c]
push edx
push 0x431638
push eax
mov ecx, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 3
call fcn.004f3a10
mov edi, 0x20
cmp dword [ebp - 0x14], edi
ja 0x46ff81
cmp eax, 1
jne 0x46fcfb
push 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xec]
push ecx
mov ecx, dword [esi + 0xb828]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x17c]
push eax
push 0x431598
push ecx
mov ecx, esi
call fcn.004f3a10
cmp dword [ebp - 0x14], edi
jbe 0x46fcf7
mov eax, 0x80004005
mov byte [ebp - 6], 1
xor ecx, ecx
cmp eax, ecx
jne 0x46ff81
fld1
lea edx, [ebp - 0xdc]
fldz
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x2c], edx
mov byte [ebp - 7], 0
test ebx, ebx
jbe 0x46fd92
mov esi, dword [ebp - 0x2c]
mov edi, ebx
mov ecx, dword [esi]
mov eax, dword [ecx + 0x10]
fld qword [ecx + 0xa8]
mov eax, dword [eax + 8]
and eax, 0x100
xor edx, edx
or eax, edx
je 0x46fd69
cmp dword [ecx + 0x24], 0xffffffff
jne 0x46fd69
cmp byte [ebp - 6], dl
je 0x46fd50
fxch st(2)
fst dword [ebp - 0x1c]
jmp 0x46fd59
fxch st(1)
fst dword [ebp - 0x1c]
fxch st(1)
fxch st(2)
fld dword [ebp - 0x1c]
fucomp st(3)
fnstsw ax
fstp st(2)
test ah, 0x44
jnp 0x46fd6f
jmp 0x46fd6b
fstp st(0)
mov byte [ebp - 7], 1
add esi, 4
sub edi, 1
jne 0x46fd25
cmp byte [ebp - 7], 0
je 0x46fd92
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x2c], 0x10
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 2
jb 0x46fd18
mov eax, dword [ebp - 0xc]
jmp 0x46fda5
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, eax
lea eax, [ebp - 0xcc]
sub eax, ecx
mov dword [ebp - 0xc], eax
xor esi, esi
mov byte [ebp - 7], 0
test ebx, ebx
jbe 0x46ff78
or edi, 0xffffffff
mov ecx, dword [ebp + esi*4 - 0xec]
mov eax, dword [ecx + 0x10]
fld qword [ecx + 0xa8]
mov eax, dword [eax + 8]
and eax, 0x100
xor edx, edx
or eax, edx
je 0x46fe04
cmp dword [ecx + 0x24], edi
jne 0x46fe04
cmp byte [ebp - 6], dl
je 0x46fde5
fxch st(1)
fst dword [ebp - 0x1c]
jmp 0x46fdee
fxch st(2)
fst dword [ebp - 0x1c]
fxch st(2)
fxch st(1)
fxch st(1)
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
fld dword [ebp - 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x46fe0a
jmp 0x46fe06
fstp st(0)
mov byte [ebp - 7], 1
inc esi
cmp esi, ebx
jb 0x46fdb6
cmp byte [ebp - 7], 0
fstp st(1)
fstp st(0)
jne 0x47034d
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47034d
xor ecx, ecx
test ebx, ebx
jbe 0x46fe61
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
xor eax, eax
cmp dword [ebp - 0x24], eax
jbe 0x46fe4a
mov esi, dword [edx + 0x64]
cmp esi, dword [ebp + eax*4 - 0x40]
je 0x46fe4a
inc eax
cmp eax, dword [ebp - 0x24]
jb 0x46fe3e
mov esi, dword [ebp - 0x24]
cmp eax, esi
jne 0x46fe5c
mov eax, dword [edx + 0x64]
mov dword [ebp + esi*4 - 0x40], eax
inc esi
mov dword [ebp - 0x24], esi
inc ecx
cmp ecx, ebx
jb 0x46fe2e
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
jbe 0x46ff21
jmp 0x46fe80
mov edx, dword [ebp - 0x28]
mov ebx, dword [ebp + edx*4 - 0x40]
cmp ebx, 0xffffffff
je 0x470607
mov eax, dword [ebx + 0x3c]
and eax, 0xf0000000
cmp eax, 0x60000000
je 0x470607
cmp eax, 0xa0000000
je 0x470607
mov eax, dword [ebp + 8]
test byte [eax + 0xb2], 0x40
je 0x46fec9
mov eax, ebx
call fcn.0050c750
test al, al
je 0x470607
mov edi, dword [ebx + 8]
xor edx, edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x18], edx
jbe 0x46ff08
lea esp, [esp]
test edi, edi
jbe 0x46ff02
mov ecx, dword [ebp - 0xc]
mov esi, dword [ecx + edx*4]
mov eax, dword [ebx + 0xc]
mov ecx, edi
nop
cmp dword [eax], esi
jne 0x46fefa
inc dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
add eax, 4
sub ecx, 1
jne 0x46fef0
inc edx
cmp edx, dword [ebp - 0x18]
jb 0x46fee0
cmp dword [ebp - 0x1c], edi
jne 0x470607
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x24]
jb 0x46fe80
cmp byte [ebp - 5], 0
jne 0x470607
mov edi, dword [ebp - 0x18]
xor esi, esi
or ebx, 0xffffffff
xor edx, edx
test edi, edi
jbe 0x46ff5d
lea esp, [esp]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax + 0x78]
cmp esi, ecx
jae 0x46ff4f
mov esi, ecx
mov eax, dword [eax + 0x74]
cmp ebx, eax
jbe 0x46ff58
mov ebx, eax
inc edx
cmp edx, edi
jb 0x46ff40
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x30], esi
test esi, esi
jbe 0x47055b
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
jmp 0x47055d
fstp st(1)
fstp st(0)
jmp 0x46fe20
mov eax, dword [esi + 0xb828]
mov edi, dword [eax + 0x3c]
push 0
and edi, 0xfffff
push edi
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0xec]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x17c]
push ecx
push 0x431188
push eax
mov ecx, esi
mov dword [ebp - 0x18], edi
mov byte [ebp - 7], 1
call fcn.004f3a10
mov ebx, eax
cmp ebx, 1
jne 0x46fff6
push 0
push edi
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0xec]
push eax
mov eax, dword [esi + 0xb828]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x17c]
push edx
push 0x4312c8
push eax
mov ecx, esi
call fcn.004f3a10
mov ebx, eax
mov byte [ebp - 7], 0
test ebx, ebx
jne 0x4700ff
xor edx, edx
test edi, edi
jbe 0x4700f4
fld1
fldz
mov ebx, dword [ebp + edx*4 - 0xec]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 8]
mov esi, dword [ebp + edx*4 - 0xdc]
mov edi, dword [ebp + edx*4 - 0xbc]
and eax, 0x100
xor ecx, ecx
or eax, ecx
je 0x470349
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
and eax, 0x100
or eax, ecx
je 0x470349
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
and eax, 0x100
or eax, ecx
je 0x470349
fld st(1)
fcomp qword [ebx + 0xa8]
fnstsw ax
test ah, 0x44
jp 0x470349
cmp byte [ebp - 7], cl
sete cl
lea ecx, [ecx + ecx - 1]
mov dword [ebp - 0x1c], ecx
fild dword [ebp - 0x1c]
fcomp qword [esi + 0xa8]
fnstsw ax
test ah, 0x44
jp 0x470349
fcom qword [edi + 0xa8]
fnstsw ax
test ah, 0x44
jp 0x470349
mov edi, dword [ebp + edx*4 - 0xcc]
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x3688]
je 0x4700ba
mov byte [ebp - 5], 1
mov ecx, dword [ebp - 0x24]
xor eax, eax
test ecx, ecx
jbe 0x4700d1
mov esi, dword [edi + 0x64]
cmp esi, dword [ebp + eax*4 - 0x40]
je 0x4700d1
inc eax
cmp eax, ecx
jb 0x4700c6
cmp eax, ecx
jne 0x4700e6
cmp byte [ebp - 5], 0
jne 0x4700e6
mov eax, dword [edi + 0x64]
mov dword [ebp + ecx*4 - 0x40], eax
inc ecx
mov dword [ebp - 0x24], ecx
inc edx
cmp edx, dword [ebp - 0x18]
jb 0x47000c
fstp st(1)
fstp st(0)
lea ecx, [ebp - 0xcc]
jmp 0x46fe64
cmp ebx, 1
jne 0x470548
push 0
push edi
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0xec]
push eax
mov eax, dword [esi + 0xb828]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x17c]
push edx
push 0x431408
push eax
mov ecx, esi
call fcn.004f3a10
mov ebx, eax
test ebx, ebx
jne 0x47035b
mov dword [ebp - 0x10], eax
test edi, edi
jbe 0x46fe67
fld1
fldz
fld qword [0x44f558]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + esi*4 - 0xbc]
mov edx, dword [ebp + esi*4 - 0xac]
fld qword [ecx + 0xa8]
mov eax, dword [ecx + 0x10]
fld qword [edx + 0xa8]
mov edi, dword [edx + 0x10]
xor bl, bl
mov dword [ebp - 0x1c], eax
mov byte [ebp - 6], bl
cmp ecx, dword [ebp + esi*4 - 0xcc]
jne 0x4701a0
mov eax, dword [edi + 8]
and eax, 0x100
xor esi, esi
or eax, esi
je 0x4701a0
fld st(2)
fucomp st(1)
fnstsw ax
test ah, 0x44
jnp 0x4701c8
mov eax, dword [ebp - 0x10]
cmp edx, dword [ebp + eax*4 - 0xcc]
jne 0x4701cc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
and eax, 0x100
xor esi, esi
or eax, esi
je 0x4701cc
fld st(2)
fucomp st(2)
fnstsw ax
test ah, 0x44
jp 0x4701cc
mov byte [ebp - 6], 1
cmp byte [ebp - 6], 0
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xc], eax
jne 0x470282
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + eax*4 - 0xdc]
mov eax, dword [ecx + 0x44]
cmp eax, esi
je 0x4701fa
cmp eax, 0xffffffff
je 0x470226
cmp dword [esi + 0x44], eax
jne 0x470226
mov eax, dword [esi + 0x48]
xor eax, 0x400
cmp dword [ecx + 0x48], eax
jne 0x470226
mov eax, dword [edi + 8]
and eax, 0x100
xor ecx, ecx
or eax, ecx
je 0x470226
fld st(4)
fucompp
fnstsw ax
test ah, 0x44
jp 0x470228
mov byte [ebp - 6], 1
jmp 0x470228
fstp st(0)
mov eax, dword [edx + 0x44]
cmp eax, esi
je 0x470239
cmp eax, 0xffffffff
je 0x470269
cmp dword [esi + 0x44], eax
jne 0x470269
mov ecx, dword [esi + 0x48]
xor ecx, 0x400
cmp dword [edx + 0x48], ecx
jne 0x470269
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
and eax, 0x100
xor ecx, ecx
or eax, ecx
je 0x470269
fld st(3)
fucompp
fnstsw ax
test ah, 0x44
jp 0x47026b
mov byte [ebp - 6], 1
jmp 0x47026b
fstp st(0)
cmp byte [ebp - 6], 0
mov bl, 1
je 0x470347
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xc], eax
jmp 0x470286
fstp st(0)
fstp st(0)
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + ecx*4 - 0xec]
mov edi, ecx
test bl, bl
je 0x47029f
mov esi, dword [ebp + edi*4 - 0xcc]
jmp 0x4702a9
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + eax*4 - 0xdc]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 8]
and eax, 0x100
xor ecx, ecx
or eax, ecx
je 0x470347
fld st(1)
fcomp qword [edx + 0xa8]
fnstsw ax
test ah, 0x44
jp 0x470347
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
and eax, 0x100
or eax, ecx
je 0x470347
fld st(2)
fcomp qword [esi + 0xa8]
fnstsw ax
test ah, 0x44
jp 0x470347
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x3688]
je 0x470303
mov byte [ebp - 5], 1
mov ecx, dword [ebp - 0x24]
xor eax, eax
test ecx, ecx
jbe 0x47031a
mov esi, dword [edx + 0x64]
cmp esi, dword [ebp + eax*4 - 0x40]
je 0x47031a
inc eax
cmp eax, ecx
jb 0x47030f
cmp eax, ecx
jne 0x47032f
cmp byte [ebp - 5], 0
jne 0x47032f
mov edx, dword [edx + 0x64]
mov dword [ebp + ecx*4 - 0x40], edx
inc ecx
mov dword [ebp - 0x24], ecx
inc edi
mov dword [ebp - 0x10], edi
cmp edi, dword [ebp - 0x18]
jb 0x470153
fstp st(2)
fstp st(1)
fstp st(0)
jmp 0x46fe67
fstp st(2)
fstp st(1)
fstp st(0)
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
test byte [esi + 0xaf], 2
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], edi
je 0x4703a8
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0xc]
push edx
push esi
call fcn.0046f0b0
test eax, eax
je 0x4703a0
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0xc]
push edx
push esi
call fcn.0046f7d0
test eax, eax
jne 0x4703a8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x4703be
mov eax, dword [esi + 0xb828]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x470537
mov eax, dword [eax + 0x3c]
mov ecx, eax
and ecx, 0xfff00000
cmp ecx, 0x70b00000
jne 0x470537
fld1
and eax, 0xfffff
lea ecx, [eax*4]
mov dword [ebp - 0x18], eax
neg eax
add eax, eax
add eax, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
xor edi, edi
cmp dword [ebp - 0x18], edi
jbe 0x47049f
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x44]
add ecx, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebx + edx]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
fld qword [edx + 0xa8]
mov eax, dword [ecx + 8]
xor esi, esi
test dword [ecx + 0x48], 0x400
je 0x470443
and eax, 8
jmp 0x470446
and eax, 4
or eax, esi
je 0x47049d
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 8]
and eax, 0x100
xor esi, esi
or eax, esi
je 0x47049d
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x47049f
cmp dword [edx + 0x24], 0xffffffff
jne 0x47049f
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov edx, dword [ebx + eax]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp + edi*4 - 0xfc], edx
cmp eax, dword [ecx + 0x3688]
je 0x47048e
mov byte [ebp - 5], 1
add dword [ebp - 0x2c], 4
inc edi
add ebx, 4
cmp edi, dword [ebp - 0x18]
jb 0x47041f
jmp 0x47049f
fstp st(0)
mov eax, dword [ebp - 0x18]
cmp edi, eax
je 0x4704c7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
add dword [ebp - 0x28], edx
add eax, eax
add eax, eax
add dword [ebp - 0x44], eax
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, 2
jb 0x470400
fstp st(0)
jmp 0x470520
fstp st(0)
test eax, eax
jbe 0x470520
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
imul ecx, eax
mov edx, dword [edx + 4]
lea edi, [edx + ecx*4]
mov ecx, dword [ebp - 0x24]
mov ebx, eax
mov esi, dword [edi]
cmp dword [esi + 0x44], 0xffffffff
jne 0x470511
xor eax, eax
test ecx, ecx
jbe 0x4704fd
mov edx, dword [esi + 0x64]
cmp edx, dword [ebp + eax*4 - 0x40]
je 0x4704fd
inc eax
cmp eax, ecx
jb 0x4704f2
cmp eax, ecx
jne 0x470515
cmp byte [ebp - 5], 0
jne 0x470515
mov eax, dword [esi + 0x64]
mov dword [ebp + ecx*4 - 0x40], eax
inc ecx
jmp 0x470515
mov byte [ebp - 5], 1
add edi, 4
sub ebx, 1
jne 0x4704e1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x10], 2
je 0x47034d
lea ecx, [ebp - 0xfc]
xor ebx, ebx
mov dword [ebp - 0xc], ecx
xor edi, edi
mov esi, dword [ebp - 0x1c]
cmp esi, edi
je 0x470548
call fcn.0050a890
call fcn.0050cb90
test ebx, ebx
je 0x46fe67
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov edi, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x1c], edx
test esi, esi
jbe 0x470864
mov eax, esi
mov dword [ebp - 0x48], eax
test dword [ecx + 0x3c], 0xfff00000
je 0x4705da
xor eax, eax
test edi, edi
jbe 0x47058f
cmp ecx, dword [ebp + eax*4 - 0x17c]
je 0x47058f
inc eax
cmp eax, edi
jb 0x470581
cmp eax, edi
jne 0x4705da
mov eax, dword [ecx]
test eax, eax
jbe 0x4705da
mov esi, dword [ecx + 4]
mov edi, eax
mov edi, edi
mov ebx, dword [esi]
xor eax, eax
cmp dword [ebp - 0x18], eax
jbe 0x4705c9
mov edx, ebx
jmp 0x4705b0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + eax*4]
cmp ecx, edx
je 0x4705bf
cmp dword [ebx + 0x44], ecx
jne 0x4705c3
mov byte [ebp - 5], 1
inc eax
cmp eax, dword [ebp - 0x18]
jb 0x4705b0
add esi, 4
sub edi, 1
jne 0x4705a0
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, esi
jb 0x4705eb
mov edx, esi
xor ecx, ecx
mov dword [ebp - 0x1c], edx
jmp 0x4705f4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx + edx*4]
cmp edx, dword [ebp - 0x48]
jb 0x470572
cmp byte [ebp - 5], 0
je 0x470864
mov eax, dword [0x551d48]
xor esi, esi
cmp eax, esi
jge 0x470616
xor eax, eax
jmp 0x47061d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x14], esi
je 0x470645
mov ecx, dword [eax + 0x14]
cmp ecx, esi
jne 0x47062f
xor ecx, ecx
mov ebx, ecx
jmp 0x470653
mov edx, dword [ecx]
mov dword [eax + 0x14], edx
cmp edx, esi
jne 0x47063b
mov dword [eax + 0x18], esi
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x470653
mov ecx, dword [eax + 0x10]
push 0x10
push 0x44
call fcn.00547721
mov ebx, eax
cmp ebx, esi
je 0x47034d
or eax, 0xffffffff
xor ecx, ecx
mov dword [ebx + 0x10], eax
mov word [ebx + 0x42], cx
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x20], eax
xor edx, edx
mov eax, ecx
push esi
and eax, 0xfffff
mov word [ebx + 0x40], dx
or eax, 0x10000000
push ebx
mov edx, ecx
mov dword [ebx], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0x3c], esi
mov dword [ebx + 4], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x38], esi
call fcn.0050a980
mov edi, eax
cmp edi, esi
jge 0x470709
mov esi, ebx
call fcn.0050a890
mov eax, dword [0x551d48]
test eax, eax
jl 0x4706fe
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4706fe
push 0x44
push 0xfe
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0
mov eax, dword [esi + 0x18]
add esp, 0xc
test eax, eax
je 0x4706f8
mov dword [eax], ebx
mov dword [esi + 0x18], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb828]
mov ecx, dword [eax + 0x34]
mov edi, dword [ebp - 0x18]
mov dword [ebx + 0x34], ecx
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 4]
lea esi, [edi*4]
push esi
push eax
push ecx
mov dword [ebx + 0x38], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb828]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebx + 0xc]
add esp, 0xc
push esi
push ecx
push edx
call sub.msvcrt.dll_memcpy
xor esi, esi
add esp, 0xc
xor eax, eax
cmp edi, esi
jbe 0x47076f
jmp 0x470760
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + eax*4]
or dword [ecx + 0x48], 1
inc eax
cmp eax, edi
jb 0x470760
mov edx, dword [ebp - 0x14]
xor ecx, ecx
cmp edx, esi
jbe 0x470794
jmp 0x470780
mov eax, dword [ebp + ecx*4 - 0x17c]
inc ecx
mov dword [eax + 0x3c], esi
mov dword [eax], esi
mov dword [eax + 8], esi
cmp ecx, edx
jb 0x470780
xor eax, eax
cmp dword [ebx + 8], esi
jbe 0x4707b8
or ecx, 0xffffffff
mov edi, edi
mov edx, dword [ebx + 0xc]
mov edx, dword [edx + eax*4]
mov dword [edx + 0x64], ebx
mov edx, dword [ebx + 0xc]
mov edx, dword [edx + eax*4]
inc eax
mov dword [edx + 0x68], ecx
cmp eax, dword [ebx + 8]
jb 0x4707a0
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xb828]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov edi, dword [ecx + 0x10]
cmp eax, edi
jae 0x4707da
mov ecx, dword [ecx + 0x14]
cmp dword [ecx + eax*4], esi
jne 0x4707da
mov edi, eax
jmp 0x4707fd
test edi, edi
jbe 0x4707f3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
lea eax, [eax + edi*4]
sub eax, 4
dec edi
cmp dword [eax], esi
je 0x4707f4
test edi, edi
ja 0x4707e7
dec edi
cmp edi, 0xffffffff
je 0x470948
call fcn.0050a890
mov eax, dword [0x551d48]
test eax, eax
jl 0x470849
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x470849
push 0x44
push 0xfe
push esi
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x1c]
mov dword [esi], 0
mov eax, dword [ecx + 0x18]
add esp, 0xc
test eax, eax
je 0x47083d
mov dword [eax], esi
jmp 0x470843
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x14], esi
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x18], esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ecx + edi*4], ebx
mov dword [ebx + 0x10], edi
or dword [eax + 0x18], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x24], esi
jbe 0x470923
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb828]
mov edx, dword [eax + 8]
mov ecx, dword [ebp + esi*4 - 0x40]
xor ebx, ebx
mov dword [ebp - 0x30], edx
test edx, edx
jbe 0x4708f9
jmp 0x470890
xor eax, eax
cmp dword [ecx + 8], eax
jbe 0x4708f1
mov edx, dword [ecx + 0xc]
mov edx, dword [edx + eax*4]
mov esi, dword [ebp - 0xc]
cmp edx, dword [esi + ebx*4]
jne 0x4708e8
mov edx, dword [ecx + 0xc]
mov esi, dword [edx + eax*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xb828]
mov edx, dword [edx + 0xc]
mov edi, dword [edx + ebx*4]
mov edx, dword [esi + 0x30]
mov dword [edi + 0x30], edx
mov dl, byte [esi + 0x34]
mov byte [edi + 0x34], dl
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xb828]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + ebx*4]
mov esi, dword [ecx + 0xc]
mov edi, dword [ebp - 0x14]
mov dword [esi + eax*4], edx
mov edx, dword [ecx + 0xc]
mov edx, dword [edx + eax*4]
or dword [edx + 0x48], 1
inc eax
cmp eax, dword [ecx + 8]
jb 0x470897
mov edx, dword [ebp - 0x30]
inc ebx
cmp ebx, edx
jb 0x470890
mov esi, dword [ebp - 0x1c]
xor edx, edx
xor eax, eax
cmp edi, edx
jbe 0x470916
cmp ecx, dword [ebp + eax*4 - 0x17c]
jne 0x470911
mov dword [ebp + eax*4 - 0x17c], edx
inc eax
cmp eax, edi
jb 0x470901
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 0x24]
jb 0x470872
xor edx, edx
xor ecx, ecx
cmp edi, edx
jbe 0x470948
jmp 0x470930
mov eax, dword [ebp + ecx*4 - 0x17c]
cmp eax, edx
je 0x470943
mov dword [eax + 0x3c], edx
mov dword [eax], edx
mov dword [eax + 8], edx
inc ecx
cmp ecx, edi
jb 0x470930
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4