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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab521
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xd0
mov eax, dword [0x4eb358]
push ebx
push esi
push edi
xor esi, esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], esi
je 0x4210e6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x4210e6
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x4c], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x42107f
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x421081
xor edi, edi
mov eax, dword [0x4eb358]
push edi
push eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, esi
jne 0x4210b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x24]
push 0x4cb060
push ecx
mov dword [ebp - 0x24], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], edx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x3c]
mov edi, dword [eax + 0x38]
cmp ebx, ebx
mov esi, ebx
je 0x42110a
push esi
mov ecx, edi
call fcn.00422f70
add esi, 0x24
add edi, 0x24
cmp esi, ebx
jne 0x4210f5
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x3c]
mov esi, edi
cmp edi, ebx
je 0x421123
push 0
mov ecx, esi
call fcn.00422f50
add esi, 0x24
cmp esi, ebx
jne 0x421113
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push 0x4d343c
mov dword [eax + 0x3c], edi
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov dword [edi], 0
mov dword [ecx], 0
push eax
mov dword [edx], 0
call fcn.00471dd0
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x28], esi
jne 0x421177
mov dword [edi], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push fcn.00448cb0
push 0x420fc0
push 0
push 0x4d499c
call fcn.0042ae30
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4211bb
push esi
call fcn.00471ad3
add esp, 4
mov dword [edi], 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
call fcn.0042fca0
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4211e3
push esi
call fcn.00471ad3
add esp, 4
mov dword [edi], 0x10
push 0
push 0
jmp 0x421402
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
push 0x4cbb80
push edx
push 0x471683
push 3
push eax
call fcn.00472ad0
add esp, 0x14
test eax, eax
je 0x42123f
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
push 0
lea eax, [ebp - 0x14]
push edx
push eax
mov dword [ecx], 0xf
call fcn.0042ba60
mov ecx, dword [ebp - 0x28]
add esp, 0xc
push ecx
call fcn.00471ad3
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x18]
push edx
call fcn.0042fcd0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
add esp, 4
push eax
push ecx
call fcn.0042fda0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add esp, 8
push edx
push eax
call fcn.0042af80
add esp, 8
lea ecx, [ebp - 0xac]
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x6c]
push 0
push 0
push ecx
push edx
lea ecx, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xb0]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push eax
push ecx
call fcn.0042acb0
mov eax, dword [ebp - 0x3c]
add esp, 0x24
cmp eax, 3
jne 0x4212b3
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042c220
mov eax, dword [ebp - 0x3c]
add esp, 4
test eax, eax
jne 0x4212d0
cmp dword [ebp - 0x6c], 8
jge 0x4212cc
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042c220
mov eax, dword [ebp - 0x3c]
add esp, 4
test eax, eax
je 0x4212d5
cmp eax, 4
jne 0x4212e1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042c230
add esp, 4
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x18], 0x10
jne 0x4212f9
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042c1d0
mov eax, dword [ebp - 0x18]
add esp, 4
mov cl, byte [eax + 8]
push 0x3ff00000
test cl, 0x20
push 0
je 0x421321
push 1
add eax, 0x5a
push 2
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042c120
mov ebx, dword [ebp - 0x2c]
add esp, 0x18
jmp 0x421338
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
push 0
push 1
lea ecx, [ebx + 4]
push ecx
push edx
call fcn.0042c120
add esp, 0x18
fld qword [0x4b0940]
fdiv qword [ebx + 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x54]
push eax
push ecx
push edx
fstp qword [ebp - 0x54]
call fcn.0042ac80
add esp, 0xc
test eax, eax
je 0x421372
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push eax
push ecx
jmp 0x421386
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebx + 0x14]
push edx
mov edx, dword [ebx + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
call fcn.0042c1e0
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ecx
call fcn.0042bd70
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add esp, 4
push edx
push eax
call fcn.0042b300
mov eax, dword [ebp - 0x18]
add esp, 8
mov esi, dword [eax]
mov ecx, dword [eax + 0xc]
lea esi, [esi + esi*2]
cmp esi, ecx
mov dword [ebp - 0x24], esi
je 0x4213d3
mov ecx, dword [ebp - 0x28]
mov dword [ebx], 0x11
push ecx
call fcn.00471ad3
add esp, 4
jmp 0x4214d3
mov ecx, dword [eax + 4]
imul ecx, esi
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 0x44], edi
jne 0x421423
mov edx, dword [ebp - 0x28]
mov dword [ebx], 1
push edx
call fcn.00471ad3
add esp, 4
lea eax, [ebp - 0x18]
push edi
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042ba60
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x20], ebx
jne 0x421475
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push eax
mov dword [edx], 1
call fcn.00471ad3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x18]
push ebx
lea edx, [ebp - 0x14]
push ecx
push edx
call fcn.0042ba60
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 1
mov ecx, dword [eax + 4]
shl ecx, 2
push ecx
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x4214a6
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
jne 0x4214fa
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push eax
mov dword [edx], 1
call fcn.00471ad3
mov ecx, dword [ebp - 0x44]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebp - 0x18]
push 0
lea eax, [ebp - 0x14]
push edx
push eax
call fcn.0042ba60
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x18]
xor edx, edx
mov edi, dword [eax + 4]
test edi, edi
jbe 0x42151a
mov eax, ebx
mov dword [ecx], eax
mov edi, dword [ebp - 0x18]
inc edx
add eax, esi
mov ebx, dword [edi + 4]
add ecx, 4
cmp edx, ebx
jb 0x421508
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042bd70
mov ecx, eax
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax + 0xc4]
mov dword [ebp - 0x24], 0
test ecx, ecx
mov dword [eax + 0xc8], edx
jle 0x421803
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc4]
mov esi, dword [ebp - 0x1c]
test ecx, ecx
mov dword [ebp - 0x20], 0
jbe 0x4217f1
jmp 0x421569
mov esi, dword [ebp - 0x78]
mov ecx, dword [esi]
push 0
push ecx
push eax
call fcn.0042b330
mov eax, dword [0x4eb358]
add esp, 0xc
add esi, 4
xor edi, edi
cmp eax, 0xffffffff
mov dword [ebp - 0x78], esi
je 0x42163f
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x421638
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
mov dword [ebp - 4], 3
je 0x4215c6
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x4215c8
xor edi, edi
mov edx, dword [0x4eb358]
push edi
push edx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4215fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push 0x4cb060
push eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], ecx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4eb358]
jmp 0x421645
mov eax, dword [0x4eb358]
jmp 0x421645
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [edi + 4], 1
jne 0x4217cf
xor edi, edi
cmp eax, 0xffffffff
je 0x421703
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x4216fe
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
mov dword [ebp - 4], 4
je 0x42168d
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x42168f
xor edi, edi
mov edx, dword [0x4eb358]
push edi
push edx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4216cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push 0x4cb060
push eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], ecx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4eb358]
cmp dword [edi], 0
je 0x4217cf
xor edi, edi
cmp eax, 0xffffffff
je 0x4217b8
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x4217b8
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
mov dword [ebp - 4], 5
je 0x42174a
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x42174c
xor edi, edi
mov edx, dword [0x4eb358]
push edi
push edx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x421785
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push 0x4cb060
push eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], ecx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc4]
push eax
push ecx
call dword [edi]
neg eax
sbb eax, eax
inc eax
jmp 0x4217d1
xor eax, eax
test eax, eax
jne 0x421dde
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
inc ecx
mov edx, dword [eax + 0xc4]
mov dword [ebp - 0x20], ecx
cmp ecx, edx
jb 0x421566
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x4c]
inc ecx
cmp ecx, edx
mov dword [ebp - 0x24], ecx
jl 0x42154c
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0048b36f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 4]
push eax
mov dword [ecx], edx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042b790
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add esp, 8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0
push ecx
push edx
call fcn.0042adf0
mov eax, dword [ebp - 0x30]
add esp, 0x10
test eax, eax
jle 0x421a6f
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
mov dword [ebp - 0x20], 0
call fcn.0042adf0
mov esi, dword [ebp - 0x20]
add esp, 0x10
test esi, esi
je 0x421a6f
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], 0
test eax, eax
jle 0x421a6f
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov edi, dword [esi + ecx + 8]
lea edx, [esi + ecx + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x7fffffff
jae 0x421a54
mov ebx, dword [ebp - 0x1c]
xor edi, edi
mov edx, dword [edx]
cmp dword [esi + ebx], edi
sete al
push eax
lea eax, [ebp - 0x48]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
push edx
call fcn.00421e40
mov edx, dword [ebp - 0x20]
sub esp, 0x10
lea eax, [ebp - 0x47]
mov ecx, esp
mov dword [ebp - 0xb8], esp
push eax
mov eax, dword [edx + ebx + 4]
mov dword [ebp - 4], 6
push eax
call fcn.00421e40
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0xffffffff
call fcn.004233f0
mov ebx, eax
mov eax, dword [0x4eb358]
xor esi, esi
cmp eax, 0xffffffff
mov dword [ebp - 4], 7
je 0x4219cb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, edi
jne 0x4219cb
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x80], eax
cmp eax, edi
mov byte [ebp - 4], 8
je 0x42195c
mov ecx, eax
call fcn.00418520
mov esi, eax
jmp 0x42195e
xor esi, esi
mov ecx, dword [0x4eb358]
push esi
push ecx
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x421997
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x94]
push 0x4cb060
push edx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x94], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], eax
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
mov edx, dword [esi + 0x3c]
lea ecx, [esi + 0x34]
push ebx
push 1
push edx
call fcn.004234d0
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x421a08
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4219ff
cmp al, 0xff
je 0x4219ff
dec al
mov byte [ecx], al
jmp 0x421a08
push ecx
call fcn.0048b36f
add esp, 4
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xcc], edi
cmp ecx, edi
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xc4], edi
je 0x421a3f
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x421a36
cmp al, 0xff
je 0x421a36
dec al
mov byte [ecx], al
jmp 0x421a3f
push ecx
call fcn.0048b36f
add esp, 4
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xd4], edi
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edx
jl 0x421899
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push eax
push ecx
call fcn.0042ada0
mov eax, dword [0x4eb358]
add esp, 0x14
xor ebx, ebx
xor edi, edi
cmp eax, 0xffffffff
je 0x421b45
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
cmp edi, ebx
jne 0x421b45
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x88], eax
cmp eax, ebx
mov dword [ebp - 4], 9
je 0x421ada
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x421adc
xor edi, edi
mov edx, dword [0x4eb358]
push edi
push edx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x421b12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push 0x4cb060
push eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], ecx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x8c]
mov dword [edi + 8], edx
mov eax, dword [0x4eb358]
xor edi, edi
cmp eax, 0xffffffff
je 0x421c02
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
cmp edi, ebx
jne 0x421c02
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [ebp - 0x90], eax
cmp eax, ebx
mov dword [ebp - 4], 0xa
je 0x421b98
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x421b9a
xor edi, edi
mov eax, dword [0x4eb358]
push edi
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x421bcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x7c]
push 0x4cb060
push ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x7c], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], edx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x64]
xor esi, esi
mov dword [edi + 0xc], eax
mov eax, dword [0x4eb358]
cmp eax, 0xffffffff
je 0x421d9c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x421d9c
push 0xb8
call fcn.0048b346
mov esi, eax
add esp, 4
mov dword [ebp - 0x98], esi
cmp esi, ebx
mov dword [ebp - 4], 0xb
je 0x421d2c
mov cl, byte [ebp - 0x45]
mov dword [esi + 0x38], ebx
mov byte [esi + 0x34], cl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
lea edx, [ebp - 0x3d]
lea ecx, [esi + 0x44]
push edx
mov byte [ebp - 4], 0xc
call fcn.00418660
lea eax, [ebp - 0x31]
lea ecx, [esi + 0x88]
push eax
mov byte [ebp - 4], 0xd
call fcn.00418660
lea ecx, [ebp - 0x46]
mov byte [ebp - 4], 0xe
push ecx
lea ecx, [esi + 0x98]
call fcn.00418660
mov byte [ebp - 0x60], 0
mov word [ebp - 0x5e], bx
mov edi, dword [ebp - 0x60]
lea edx, [esi + 0x28]
mov word [ebp - 0x5c], bx
mov word [ebp - 0x5a], bx
mov dword [edx], edi
mov edi, dword [ebp - 0x5c]
mov ecx, 1
xor ax, ax
mov dword [edx + 4], edi
mov dword [esi + 0x20], 0x33333333
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], 0x40073333
mov word [ebp - 0x58], ax
mov word [edx + 8], ax
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov byte [esi + 0xb0], al
mov dword [esi + 0xb4], ebx
jmp 0x421d2e
xor esi, esi
mov eax, dword [0x4eb358]
push esi
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x421d69
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x84]
push 0x4cb060
push ecx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x84], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], edx
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x18]
push ebx
lea edx, [ebp - 0x14]
push ecx
push edx
mov dword [esi + 0x10], eax
call fcn.0042ba60
mov eax, dword [ebp - 0x28]
add esp, 0xc
push eax
call fcn.00471ad3
mov esi, dword [ebp - 0x44]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push eax
mov dword [edx], 0xe
call fcn.00471ad3
mov esi, dword [ebp - 0x44]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x18]
push 0
lea edx, [ebp - 0x14]
push ecx
push edx
call fcn.0042ba60
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push eax
call fcn.0048b36f
mov ecx, dword [ebp - 0xc]
add esp, 4
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc