Function at 0x41b940
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:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 0xc]
xor ebx, ebx
push esi
test eax, eax
push edi
mov dword [ebp - 0xc], ecx
mov dword [ecx], 0x436104
jne 0x41c06a
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 - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41b9ae
call esi
test eax, eax
je 0x41b99b
cmp byte [ebp - 3], 0x3a
jne 0x41b99b
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41b9c5
call esi
test eax, eax
je 0x41b9c5
cmp byte [ebp - 3], 0x3a
jne 0x41b9c5
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41ba07
call esi
test eax, eax
je 0x41b9f4
cmp byte [ebp - 3], 0x3a
jne 0x41b9f4
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41ba1e
call esi
test eax, eax
je 0x41ba1e
cmp byte [ebp - 3], 0x3a
jne 0x41ba1e
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41ba60
call esi
test eax, eax
je 0x41ba4d
cmp byte [ebp - 3], 0x3a
jne 0x41ba4d
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41ba77
call esi
test eax, eax
je 0x41ba77
cmp byte [ebp - 3], 0x3a
jne 0x41ba77
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea eax, [ebp - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bab7
call esi
test eax, eax
je 0x41baa4
cmp byte [ebp - 3], 0x3a
jne 0x41baa4
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bace
call esi
test eax, eax
je 0x41bace
cmp byte [ebp - 3], 0x3a
jne 0x41bace
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleCount]
lea eax, [ebp - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bb0f
call esi
test eax, eax
je 0x41bafc
cmp byte [ebp - 3], 0x3a
jne 0x41bafc
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bb26
call esi
test eax, eax
je 0x41bb26
cmp byte [ebp - 3], 0x3a
jne 0x41bb26
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bb68
call esi
test eax, eax
je 0x41bb55
cmp byte [ebp - 3], 0x3a
jne 0x41bb55
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bb7f
call esi
test eax, eax
je 0x41bb7f
cmp byte [ebp - 3], 0x3a
jne 0x41bb7f
movzx eax, byte [ebp - 4]
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 - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bbc2
call esi
test eax, eax
je 0x41bbaf
cmp byte [ebp - 3], 0x3a
jne 0x41bbaf
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bbd9
call esi
test eax, eax
je 0x41bbd9
cmp byte [ebp - 3], 0x3a
jne 0x41bbd9
movzx eax, byte [ebp - 4]
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 - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bc1c
call esi
test eax, eax
je 0x41bc09
cmp byte [ebp - 3], 0x3a
jne 0x41bc09
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bc33
call esi
test eax, eax
je 0x41bc33
cmp byte [ebp - 3], 0x3a
jne 0x41bc33
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bc74
call esi
test eax, eax
je 0x41bc61
cmp byte [ebp - 3], 0x3a
jne 0x41bc61
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bc8b
call esi
test eax, eax
je 0x41bc8b
cmp byte [ebp - 3], 0x3a
jne 0x41bc8b
movzx eax, byte [ebp - 4]
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 - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bceb
call esi
test eax, eax
je 0x41bcbb
cmp byte [ebp - 3], 0x3a
jne 0x41bcbb
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x41bcd8
cmp byte [ebp - 3], 0x3a
jne 0x41bcd8
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bd02
call esi
test eax, eax
je 0x41bd02
cmp byte [ebp - 3], 0x3a
jne 0x41bd02
movzx eax, byte [ebp - 4]
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 - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bd62
call esi
test eax, eax
je 0x41bd32
cmp byte [ebp - 3], 0x3a
jne 0x41bd32
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x41bd4f
cmp byte [ebp - 3], 0x3a
jne 0x41bd4f
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bd79
call esi
test eax, eax
je 0x41bd79
cmp byte [ebp - 3], 0x3a
jne 0x41bd79
movzx eax, byte [ebp - 4]
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 - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bdd9
call esi
test eax, eax
je 0x41bda9
cmp byte [ebp - 3], 0x3a
jne 0x41bda9
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x41bdc6
cmp byte [ebp - 3], 0x3a
jne 0x41bdc6
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bdf0
call esi
test eax, eax
je 0x41bdf0
cmp byte [ebp - 3], 0x3a
jne 0x41bdf0
movzx eax, byte [ebp - 4]
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 - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41be50
call esi
test eax, eax
je 0x41be20
cmp byte [ebp - 3], 0x3a
jne 0x41be20
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x41be3d
cmp byte [ebp - 3], 0x3a
jne 0x41be3d
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41be67
call esi
test eax, eax
je 0x41be67
cmp byte [ebp - 3], 0x3a
jne 0x41be67
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bec5
call esi
test eax, eax
je 0x41be95
cmp byte [ebp - 3], 0x3a
jne 0x41be95
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x41beb2
cmp byte [ebp - 3], 0x3a
jne 0x41beb2
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bedc
call esi
test eax, eax
je 0x41bedc
cmp byte [ebp - 3], 0x3a
jne 0x41bedc
movzx eax, byte [ebp - 4]
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 - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bf3d
call esi
test eax, eax
je 0x41bf0d
cmp byte [ebp - 3], 0x3a
jne 0x41bf0d
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x41bf2a
cmp byte [ebp - 3], 0x3a
jne 0x41bf2a
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bf54
call esi
test eax, eax
je 0x41bf54
cmp byte [ebp - 3], 0x3a
jne 0x41bf54
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41bfb3
call esi
test eax, eax
je 0x41bf83
cmp byte [ebp - 3], 0x3a
jne 0x41bf83
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x41bfa0
cmp byte [ebp - 3], 0x3a
jne 0x41bfa0
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41bfca
call esi
test eax, eax
je 0x41bfca
cmp byte [ebp - 3], 0x3a
jne 0x41bfca
movzx eax, byte [ebp - 4]
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 - 0xc]
cmp eax, 0x4db
lea eax, [ebp - 4]
push eax
push 3
jne 0x41c053
call esi
test eax, eax
je 0x41c023
cmp byte [ebp - 3], 0x3a
jne 0x41c023
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x41c040
cmp byte [ebp - 3], 0x3a
jne 0x41c040
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call edi
jmp 0x41c06a
call esi
test eax, eax
je 0x41c06a
cmp byte [ebp - 3], 0x3a
jne 0x41c06a
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov esi, dword [ebp - 0xc]
mov eax, dword [0x43c3d0]
push dword [esi + 0x18]
call dword [eax + 0x48]
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x41c0ab
push 0xbb8
push eax
mov eax, dword [0x43c3d0]
call dword [eax + 0x70]
cmp eax, 0x102
jne 0x41c0a0
mov eax, dword [0x43c3d0]
push ebx
push dword [esi + 0x1c]
call dword [eax + 0x6c]
push dword [esi + 0x1c]
mov eax, dword [0x43c3d0]
call dword [eax + 0x44]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41c0bb
push eax
mov eax, dword [0x43c3d0]
call dword [eax + 0x44]
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x41c0cb
push eax
mov eax, dword [0x43c3d0]
call dword [eax + 0x44]
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x41c0db
push eax
mov eax, dword [0x43c3d0]
call dword [eax + 0x44]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41c0e9
push eax
call fcn.00433e88
pop ecx
push dword [esi + 0x18]
mov eax, dword [0x43c3d0]
call dword [eax + 0x44]
pop edi
pop esi
pop ebx
leave
ret