Function at 0x41e09e
Capabilities:
Allocate thread local storage
Clear file content
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x41e1c6
lea eax, [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x41e0e3
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
push 1
push dword [ebp - 0x24]
call fcn.0041e33b
pop ecx
pop ecx
jmp 0x41e1c1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x41e1b2
mov dword [ebp - 8], 0xc64a6847
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xdfe924f6
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x40], 0x8ef34ea8
mov dword [ebp - 0x44], 0
mov dword [ebp - 8], 0
jmp 0x41e131
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xd
jle 0x41e180
mov dword [ebp - 0x34], 0xfffffff9
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x38], 0xdac0faab
lea eax, [ebp - 0x30]
push eax
push 0x6d18
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push 0x3b7a
push 1
lea eax, [ebp - 0x14]
push eax
push 1
push 1
call fcn.0040fc10
add esp, 0x30
jmp 0x41e12a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x5b24
push 0x41a9
call fcn.004102e8
add esp, 0x2c
jmp 0x41e1c1
push 0x188f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x41e337
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x41e21f
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
test eax, eax
je 0x41e206
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x41e21a
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x41e21a
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x41e337
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x41e2e0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x41e261
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jg 0x41e2de
mov dword [ebp - 0x6c], 8
mov byte [ebp - 2], 0
push 0x5f8c
lea eax, [ebp - 2]
push eax
push 1
push 1
push 0x75ed
push 1
push 1
push 0x5c96
push 0xc
call fcn.0040d2e0
add esp, 0x24
push 1
push 1
lea eax, [ebp - 0x6c]
push eax
push 0xc80
push 1
push 0x4ae9
push 0x14c
push 0x505b
push 1
push 1
push 0x4dc7
push 0x323e
push 0
push 0x1ca2
push 0x5266
call fcn.004203b3
add esp, 0x3c
jmp 0x41e256
jmp 0x41e337
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x41e302
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jl 0x41e337
mov byte [ebp - 3], 0
movzx eax, byte [ebp - 3]
test eax, eax
je 0x41e335
push 1
push 1
push 0x8f0
push 0x17ec
push 0x624f
push 1
push 1
call fcn.0040b125
add esp, 0x1c
jmp 0x41e2f7
mov esp, ebp
pop ebp
ret