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

Disassembly:
push 0xffffffffffffffff
push 0x450178
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
or ebx, 0xffffffff
xor eax, eax
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
cmp ecx, ebx
je 0x437097
mov dword [esp + 0x24], edi
mov dword [esp + 0x40], ecx
lea ebp, [edi + 1]
push 0x4367c0
mov ecx, 0x475384
call fcn.004339c0
mov eax, dword [0x475388]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 4
push eax
call esi
test eax, eax
je 0x437103
push 0x4367c0
mov ecx, 0x475384
call fcn.004339c0
mov ecx, dword [0x475388]
add esp, 4
push ecx
call esi
cmp byte [eax + 0x18], 0
je 0x437103
push 0x4367c0
mov ecx, 0x475384
mov dword [esp + 0x2c], ebp
call fcn.004339c0
mov edx, dword [0x475388]
add esp, 4
push edx
call esi
mov eax, dword [eax + 0xc]
mov dword [esp + ebp*4 + 0x40], eax
inc ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x88]
and eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x4371b1
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x84]
call fcn.004366b0
mov eax, dword [esp + 0x30]
cmp eax, 0x14
jbe 0x437185
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4371ad
lea eax, [esp + 0x80]
call fcn.00436e50
push 0
push 0
push 0
mov dword [esp + 0x3c], edx
push 0
lea edx, [esp + 0x3c]
push edx
push esi
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
je 0x4371ad
mov dword [esp + 0x20], ebp
mov dword [esp + ebp*4 + 0x40], esi
inc ebp
jmp 0x4371ad
cmp byte [esp + 0x90], 0
jne 0x4371b1
push edi
push eax
lea esi, [esp + 0x54]
call fcn.00415510
mov ecx, 8
mov esi, eax
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
or ebx, 0xffffffff
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x20], ebx
mov byte [esp + 0x2c], 0
setne bl
xor esi, esi
nop
test bl, bl
jne 0x4371de
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x84]
call fcn.004366b0
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [esp + 0x2c], ecx
test ebp, ebp
je 0x437238
test bl, bl
je 0x4371eb
or eax, 0xffffffff
jmp 0x4371ed
mov eax, esi
push eax
push 0
lea edx, [esp + 0x48]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebp
jae 0x43723e
cmp eax, dword [esp + 0x24]
je 0x437265
cmp eax, dword [esp + 0x28]
je 0x43728b
cmp eax, dword [esp + 0x20]
jne 0x43723e
test edi, edi
je 0x437222
cmp edi, 0xffffffff
je 0x437222
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push esi
call sub.KERNEL32.dll_Sleep
cmp byte [esp + 0x90], 0
je 0x437258
add dword [esp + 0x88], 2
adc dword [esp + 0x8c], 0xffffffff
cmp byte [esp + 0x2c], 0
jne 0x4371c0
jmp 0x437212
test edi, edi
je 0x437275
cmp edi, 0xffffffff
je 0x437275
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push 0x4367c0
mov ecx, 0x475384
call fcn.004339c0
mov eax, dword [0x475388]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x460784
lea edx, [esp + 0x1f]
xor al, al
push edx
mov byte [esp + 0x23], al
call sub.MSVCR90.dll__CxxThrowException
int3