Function at 0x1004f85e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007552c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1004f8f3
lea eax, [ebp + 0xc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x1004f8d2
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x1004f8d0
push 0
push 0
push 0
push 0
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
jmp 0x1004f8ee
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x1004f8ee
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x1004fe62
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax]
test eax, eax
je 0x1004fe20
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 0xfffffffc
push 3
lea ecx, [ebp - 0xa8]
call fcn.1000f62f
and dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0xffff
mov dword [ebp - 0x9c], 0x464f6128
mov dword [ebp - 0x34], 0
jmp 0x1004f964
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jge 0x1004f980
push dword [ebp - 0x34]
lea ecx, [ebp - 0xa8]
call fcn.1000f696
mov dword [eax], 1
jmp 0x1004f95d
cmp dword [ebp - 0x10], 4
jne 0x1004fa33
mov dword [ebp - 0x24], 0
jmp 0x1004f99a
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 4
jge 0x1004f9b0
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0xec], 0x59609c3f
jmp 0x1004f993
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x1004f9c0
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x1004fa31
mov dword [ebp - 0x74], 0xce3e63e3
push 0x2f4a
push 0x6520
push 0x4d4d
push 0x4d4e
push 0x1331
push 0x680a
push 0x67e0
push 0x3822
push 0
push 0
push 0x26bd
push 0x5c6f
push 0x1fec
push 0x7b6d
push 0x290c
lea eax, [ebp - 0x74]
push eax
call fcn.10050f1e
add esp, 0x40
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0xec], 0
je 0x1004fa2f
jmp 0x1004f9b9
jmp 0x1004f9b9
jmp 0x1004fa4a
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x5686
lea eax, [ebp - 0x10]
push eax
call fcn.1004946d
add esp, 0x10
mov dword [ebp - 0x10], 0xfffffffa
jmp 0x1004fa5a
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jle 0x1004fb67
push 2
lea ecx, [ebp - 0xb4]
call fcn.1000f62f
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x7c], 0x2aec7f51
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
call fcn.100495d8
add esp, 0xc
push 0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x4977
push 0x508c
push 0x7d80
push 0x715a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xb4]
push eax
push 1
call fcn.100527c0
add esp, 0x2c
mov dword [ebp - 0x20], 0xfffffffa
jmp 0x1004faec
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 9
jg 0x1004fb53
mov dword [ebp - 0x90], 0x4a12
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xe5
lea eax, [ebp - 0x7c]
push eax
push 0
push 1
push 0x59bf
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x40c6
push 0x54ba
push 0x370a
call fcn.10050f1e
add esp, 0x40
jmp 0x1004fae5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb4]
call fcn.1000f691
jmp 0x1004fa53
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.1000f691
mov eax, dword [0x10d30d38]
and eax, 1
jne 0x1004fbad
mov eax, dword [0x10d30d38]
or eax, 1
mov dword [0x10d30d38], eax
mov dword [ebp - 4], 2
mov ecx, 0x10d30cd0
call fcn.100290fa
push 0x10075957
call fcn.1005d289
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], 0xf6af1124
mov dword [ebp - 0x30], 0
jmp 0x1004fbc4
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffea
je 0x1004fbef
mov dword [ebp - 0x84], 0xfff6
push 0
push 0x6a0d
call fcn.10051ed4
pop ecx
pop ecx
cmp dword [ebp - 0x84], 0
je 0x1004fbed
jmp 0x1004fbef
jmp 0x1004fbbd
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0xd4]
push eax
mov ecx, 0x10d30cd0
call fcn.100291b1
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xc8]
push eax
mov ecx, 0x10d30cd0
call fcn.100291c8
mov ecx, eax
call fcn.10029060
movzx eax, al
test eax, eax
je 0x1004fcb9
mov dword [ebp - 0xd0], 0xfffa
push 0x90f
push 0x788
push 0x785
push 0x75b6
push 1
push 1
push 0x7de3
push 0x5464
push 0x5434
push 0x382d
push 0x4ad9
push 0x4593
push 0
call fcn.1004f33c
add esp, 0x34
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x19]
push eax
push 0x1e72
push 0
call fcn.1004c49c
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x10d30cd0
call fcn.10056095
mov ecx, dword [ebp - 0x44]
mov al, byte [eax]
mov byte [ecx], al
jmp 0x1004fe62
mov dword [ebp - 0x18], 0xfffffffe
mov dword [ebp - 0x50], 0xffff
mov dword [ebp - 0x38], 0
jmp 0x1004fcd7
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 2
jge 0x1004fced
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0xdc], 5
jmp 0x1004fcd0
mov dword [ebp - 0x18], 0
jmp 0x1004fcfd
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x1004fd13
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xdc], 0x1f2c29a
jmp 0x1004fcf6
mov dword [ebp - 0x18], 0xffffffe6
jmp 0x1004fd23
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffed
jl 0x1004fd95
push 2
lea ecx, [ebp - 0xc0]
call fcn.1000f62f
mov dword [ebp - 4], 3
push 0xa60
push 0x32b5
push 1
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xcc]
push eax
push 1
push 0
call fcn.10050205
add esp, 0x1c
push 1
push 0x4d42
lea eax, [ebp - 0x50]
push eax
push 1
push 0x32c2
lea eax, [ebp - 0xc0]
push eax
call fcn.10048f68
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.1000f691
jmp 0x1004fd1c
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x104]
push eax
call fcn.10048de1
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x60]
call fcn.1000f3b7
mov al, byte [eax]
mov byte [ebp - 0x11], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x104]
call fcn.1000f57d
push dword [ebp - 0x28]
lea eax, [ebp - 0x11]
push eax
push 0x4fa
push 0
push 0x1f15
push 0x10d30cd0
push 0x3205
push 0x704b
call fcn.1004c37d
add esp, 0x20
push 0
push 0x11f3
push 1
push 0x55ed
call fcn.100515d9
add esp, 0x10
mov eax, dword [ebp - 0x44]
mov cl, byte [ebp - 0x11]
mov byte [eax], cl
jmp 0x1004fe62
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], 2
jmp 0x1004fe42
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jl 0x1004fe62
push 1
push 0x3d61
push 1
push 0x2a17
call fcn.10048ac7
add esp, 0x10
jmp 0x1004fe37
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret