Function at 0x433010
Capabilities:
Create thread
Get common file path
Read .ini file
Set current directory
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x5a3812
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x64c], eax
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x660]
mov dword fs:[0], eax
mov edi, ecx
push 0x61df64
mov dword [esp + 0x1c], edi
call fcn.00427560
mov eax, dword [0x61df80]
xor ebp, ebp
add esp, 4
cmp eax, ebp
jbe 0x433499
cmp eax, 1
jne 0x4330a0
mov eax, dword [0x61df7c]
mov esi, dword [eax]
mov eax, dword [0x61df64]
cmp eax, ebp
jne 0x4331fd
call fcn.004e73ca
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x433096
call fcn.004e73ca
cmp dword [esi + 0x10], 5
je 0x43348b
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, 0x61df64
mov dword [esp + 0x18], 6
call fcn.00421250
mov eax, dword [esp + 0x20]
mov esi, dword [0x61df7c]
cmp eax, ebp
je 0x4330d2
cmp eax, dword [0x61df64]
je 0x4330d7
call fcn.004e73ca
cmp dword [esp + 0x24], esi
je 0x433204
mov ecx, edi
call fcn.00425e90
test eax, eax
je 0x433204
cmp byte [esp + 0x670], 0
jne 0x43348b
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.0040e2c0
push str.dep360.ini
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x67c], ebp
call fcn.0040d150
mov eax, dword [eax]
add esp, 0x14
push eax
push ebp
push str.delay
push str.chkvir
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0040c150
lea ecx, [esp + 0x18]
mov dword [esp + 0x668], 0xffffffff
call fcn.0040c150
push esi
push ebp
lea ecx, [esp + 0x1a4]
call fcn.004452e0
lea ecx, [esp + 0x19c]
mov dword [esp + 0x668], 1
call fcn.0049b3e0
push ebp
push 0x61df64
mov ecx, edi
mov esi, eax
call fcn.0042ace0
cmp esi, 1
jne 0x4331a9
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
call fcn.00428ef0
add esp, 8
push ebp
push ebp
push esi
push 0x423fe0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebp
je 0x4331e1
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4331da
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x19c]
mov dword [esp + 0x668], 0xffffffff
call fcn.0041e1e0
jmp 0x433499
mov eax, dword [eax]
jmp 0x43308c
mov eax, dword [0x61df64]
mov ecx, dword [0x61df7c]
mov esi, dword [ecx]
cmp eax, ebp
jne 0x433484
call fcn.004e73ca
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x43322a
call fcn.004e73ca
cmp byte [esp + 0x670], 0
jne 0x43348b
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.0040e2c0
push str.dep360.ini
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x67c], 2
call fcn.0040d150
mov eax, dword [eax]
mov ecx, dword [0x61621c]
add esp, 0x14
push eax
push ecx
push 0x5c0e2c
push str.chkvir
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x61621c], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4332a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x668], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4332cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x61621c]
push ecx
push 0x61df64
push ebp
lea ecx, [esp + 0x54]
call fcn.004461e0
lea ecx, [esp + 0x48]
mov dword [esp + 0x668], 3
call fcn.0049b3e0
lea edx, [esp + 0x17]
mov esi, eax
push edx
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x30]
call fcn.00421470
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x66c], 4
call fcn.00446300
push ebp
push ebp
push esi
push 0x423fe0
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
call ebp
mov edi, eax
cmp esi, 3
jne 0x433413
push 0x208
lea edx, [esp + 0x458]
push 0
push edx
call fcn.004e5fc0
add esp, 0xc
lea eax, [esp + 0x454]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0040e2c0
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 8
push eax
call edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4333a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esp, 0x20
lea edx, [esp + 0x48]
mov dword [esp + 0x3c], esp
mov ecx, esp
push edx
call fcn.0042c550
push 0
lea ecx, [esp + 0x2e4]
call fcn.00441ce0
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x668], 5
call fcn.0049b3e0
cmp word [esp + 0x454], 0
mov esi, eax
je 0x4333ed
lea eax, [esp + 0x454]
push eax
call edi
push 0
push 0
push esi
push 0x423fe0
push 0
push 0
call ebp
lea ecx, [esp + 0x2c0]
mov edi, eax
mov byte [esp + 0x668], 4
call fcn.00431ae0
test edi, edi
je 0x43343a
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x433433
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 2
jne 0x43344d
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0xa4], 0
mov ecx, dword [esp + 0x18]
push 0
push 0x61df64
call fcn.0042ace0
lea ecx, [esp + 0x28]
mov byte [esp + 0x668], 3
call fcn.0042c600
lea ecx, [esp + 0x48]
mov dword [esp + 0x668], 0xffffffff
call fcn.00431030
jmp 0x433499
mov eax, dword [eax]
jmp 0x433220
push 1
push 0x61df64
mov ecx, edi
call fcn.0042ace0
mov ecx, dword [esp + 0x660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x65c
ret 4