Function at 0x41f8f8
Capabilities:
Allocate thread local storage
Create directory
Get common file path
Read file on windows
Resume thread
Set current directory
Set environment variable
Set file attributes
Suspend thread

Disassembly:
mov eax, 0x434a9f
call fcn.00433ea0
mov eax, 0x19128
call fcn.00433ed0
push ebx
lea eax, [ebp + 8]
xor ebx, ebx
push esi
test eax, eax
push edi
mov dword [ebp - 0x18], ecx
jne 0x42002a
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41f96e
call esi
test eax, eax
je 0x41f95b
cmp byte [ebp - 0xf], 0x3a
jne 0x41f95b
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41f985
call esi
test eax, eax
je 0x41f985
cmp byte [ebp - 0xf], 0x3a
jne 0x41f985
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41f9c7
call esi
test eax, eax
je 0x41f9b4
cmp byte [ebp - 0xf], 0x3a
jne 0x41f9b4
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41f9de
call esi
test eax, eax
je 0x41f9de
cmp byte [ebp - 0xf], 0x3a
jne 0x41f9de
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fa20
call esi
test eax, eax
je 0x41fa0d
cmp byte [ebp - 0xf], 0x3a
jne 0x41fa0d
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fa37
call esi
test eax, eax
je 0x41fa37
cmp byte [ebp - 0xf], 0x3a
jne 0x41fa37
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fa77
call esi
test eax, eax
je 0x41fa64
cmp byte [ebp - 0xf], 0x3a
jne 0x41fa64
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fa8e
call esi
test eax, eax
je 0x41fa8e
cmp byte [ebp - 0xf], 0x3a
jne 0x41fa8e
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleCount]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41facf
call esi
test eax, eax
je 0x41fabc
cmp byte [ebp - 0xf], 0x3a
jne 0x41fabc
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fae6
call esi
test eax, eax
je 0x41fae6
cmp byte [ebp - 0xf], 0x3a
jne 0x41fae6
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fb28
call esi
test eax, eax
je 0x41fb15
cmp byte [ebp - 0xf], 0x3a
jne 0x41fb15
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fb3f
call esi
test eax, eax
je 0x41fb3f
cmp byte [ebp - 0xf], 0x3a
jne 0x41fb3f
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fb82
call esi
test eax, eax
je 0x41fb6f
cmp byte [ebp - 0xf], 0x3a
jne 0x41fb6f
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fb99
call esi
test eax, eax
je 0x41fb99
cmp byte [ebp - 0xf], 0x3a
jne 0x41fb99
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fbdc
call esi
test eax, eax
je 0x41fbc9
cmp byte [ebp - 0xf], 0x3a
jne 0x41fbc9
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fbf3
call esi
test eax, eax
je 0x41fbf3
cmp byte [ebp - 0xf], 0x3a
jne 0x41fbf3
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fc34
call esi
test eax, eax
je 0x41fc21
cmp byte [ebp - 0xf], 0x3a
jne 0x41fc21
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fc4b
call esi
test eax, eax
je 0x41fc4b
cmp byte [ebp - 0xf], 0x3a
jne 0x41fc4b
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fcab
call esi
test eax, eax
je 0x41fc7b
cmp byte [ebp - 0xf], 0x3a
jne 0x41fc7b
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call esi
test eax, eax
je 0x41fc98
cmp byte [ebp - 0xf], 0x3a
jne 0x41fc98
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fcc2
call esi
test eax, eax
je 0x41fcc2
cmp byte [ebp - 0xf], 0x3a
jne 0x41fcc2
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fd22
call esi
test eax, eax
je 0x41fcf2
cmp byte [ebp - 0xf], 0x3a
jne 0x41fcf2
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call esi
test eax, eax
je 0x41fd0f
cmp byte [ebp - 0xf], 0x3a
jne 0x41fd0f
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fd39
call esi
test eax, eax
je 0x41fd39
cmp byte [ebp - 0xf], 0x3a
jne 0x41fd39
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenEventW]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fd99
call esi
test eax, eax
je 0x41fd69
cmp byte [ebp - 0xf], 0x3a
jne 0x41fd69
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call esi
test eax, eax
je 0x41fd86
cmp byte [ebp - 0xf], 0x3a
jne 0x41fd86
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fdb0
call esi
test eax, eax
je 0x41fdb0
cmp byte [ebp - 0xf], 0x3a
jne 0x41fdb0
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fe10
call esi
test eax, eax
je 0x41fde0
cmp byte [ebp - 0xf], 0x3a
jne 0x41fde0
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call esi
test eax, eax
je 0x41fdfd
cmp byte [ebp - 0xf], 0x3a
jne 0x41fdfd
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fe27
call esi
test eax, eax
je 0x41fe27
cmp byte [ebp - 0xf], 0x3a
jne 0x41fe27
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fe85
call esi
test eax, eax
je 0x41fe55
cmp byte [ebp - 0xf], 0x3a
jne 0x41fe55
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call esi
test eax, eax
je 0x41fe72
cmp byte [ebp - 0xf], 0x3a
jne 0x41fe72
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41fe9c
call esi
test eax, eax
je 0x41fe9c
cmp byte [ebp - 0xf], 0x3a
jne 0x41fe9c
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41fefd
call esi
test eax, eax
je 0x41fecd
cmp byte [ebp - 0xf], 0x3a
jne 0x41fecd
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call esi
test eax, eax
je 0x41feea
cmp byte [ebp - 0xf], 0x3a
jne 0x41feea
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41ff14
call esi
test eax, eax
je 0x41ff14
cmp byte [ebp - 0xf], 0x3a
jne 0x41ff14
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x41ff73
call esi
test eax, eax
je 0x41ff43
cmp byte [ebp - 0xf], 0x3a
jne 0x41ff43
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call esi
test eax, eax
je 0x41ff60
cmp byte [ebp - 0xf], 0x3a
jne 0x41ff60
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x41ff8a
call esi
test eax, eax
je 0x41ff8a
cmp byte [ebp - 0xf], 0x3a
jne 0x41ff8a
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 8]
cmp eax, 0x4db
lea eax, [ebp - 0x10]
push eax
push 3
jne 0x420013
call esi
test eax, eax
je 0x41ffe3
cmp byte [ebp - 0xf], 0x3a
jne 0x41ffe3
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call esi
test eax, eax
je 0x420000
cmp byte [ebp - 0xf], 0x3a
jne 0x420000
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x42
push eax
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], bl
call edi
jmp 0x42002a
call esi
test eax, eax
je 0x42002a
cmp byte [ebp - 0xf], 0x3a
jne 0x42002a
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x19134]
push dword [eax + 8]
push dword [eax + 4]
push dword [ebp + 8]
call fcn.004060f6
lea ecx, [ebp - 0x19134]
mov dword [ebp - 4], ebx
call fcn.00406fbd
pop edi
pop esi
cmp eax, 3
pop ebx
je 0x42009b
cmp eax, 1
lea ecx, [ebp - 0x19134]
jne 0x420087
call fcn.0040777b
test eax, eax
jne 0x42009b
lea ecx, [ebp - 0x19134]
call fcn.00407f2e
test eax, eax
je 0x42009b
lea ecx, [ebp - 0x19134]
call fcn.00408699
jmp 0x42009b
call fcn.00407f2e
test eax, eax
je 0x42009b
lea ecx, [ebp - 0x19134]
call fcn.00408de7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x19134]
call fcn.0040687a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4