Function at 0x4641e4
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4641ec
push ebx
mov ebx, 0x469f70
xor eax, eax
push ebp
push 0x464472
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x46bd08
mov edx, 0x464488
call fcn.0040456c
push 0x464494
push dword [0x46bd08]
push 0x4644a0
mov eax, 0x46bd08
mov edx, 3
call fcn.00404898
mov eax, 0x463514
mov edx, dword [0x46a410]
mov dword [edx], eax
mov eax, fcn.00463e44
mov edx, dword [0x46a3d0]
mov dword [edx], eax
call fcn.00466348
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.0040375c
mov dword [0x46bd14], eax
xor edx, edx
mov eax, dword [0x46bd14]
call fcn.0041a714
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.0040375c
mov dword [0x46bd10], eax
xor edx, edx
mov eax, dword [0x46bd10]
call fcn.0041a714
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.0040375c
mov dword [0x46bd18], eax
xor edx, edx
mov eax, dword [0x46bd18]
call fcn.0041a714
xor eax, eax
mov dword [0x46bd1c], eax
lea eax, [ebp - 4]
call fcn.0046128c
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040456c
push ebx
mov eax, dword [ebx]
call fcn.004047d8
mov ecx, eax
sub ecx, 2
mov edx, 2
mov eax, dword [ebx]
call fcn.00404a38
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.00463100
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0040456c
mov eax, dword [0x46a344]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0xc]
call fcn.00408d04
mov edx, dword [ebp - 0xc]
mov eax, 0x46bd20
mov ecx, dword [ebx]
call fcn.00404824
lea edx, [ebp - 0x14]
mov eax, 0xb
call fcn.00466814
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00465da8
mov edx, dword [ebp - 0x10]
mov eax, 0x46bce8
call fcn.0040456c
lea edx, [ebp - 0x18]
mov eax, 0xbf
call fcn.00466814
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov ax, 0x1c
call fcn.004630b0
mov edx, dword [ebp - 0x1c]
mov eax, 0x46bcf8
pop ecx
call fcn.00404824
mov eax, 0x46bcf4
mov ecx, dword [0x46bd08]
mov edx, dword [0x46bcf8]
call fcn.00404824
mov eax, dword [0x46bcf4]
call fcn.00463c90
mov eax, dword [0x46bcf8]
call fcn.00463768
lea edx, [ebp - 0x20]
mov eax, 0x2e
call fcn.00466814
push dword [ebp - 0x20]
mov eax, dword [0x46a344]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x24]
call fcn.00408d04
push dword [ebp - 0x24]
lea edx, [ebp - 0x28]
mov eax, 7
call fcn.00466814
push dword [ebp - 0x28]
mov eax, 0x46bcec
mov edx, 3
call fcn.00404898
mov eax, dword [0x46bcf4]
call fcn.00463bd0
mov eax, dword [0x46bcf4]
call fcn.004049d8
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea edx, [ebp - 0x2c]
mov eax, 0xc0
call fcn.00466814
push dword [ebp - 0x2c]
mov eax, dword [0x46a194]
push dword [eax]
lea edx, [ebp - 0x30]
mov eax, 0x9e
call fcn.00466814
push dword [ebp - 0x30]
mov eax, 0x46bcf0
mov edx, 3
call fcn.00404898
mov ecx, dword [0x46a10c]
mov ecx, dword [ecx]
mov eax, dword [0x46a1a8]
mov eax, dword [eax]
mov edx, dword [0x46bcf4]
call fcn.0045b3cc
mov eax, dword [0x46a4c4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [0x46bd0c], eax
mov eax, dword [0x46a4c4]
mov eax, dword [eax]
call fcn.0046682c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464479
lea eax, [ebp - 0x30]
mov edx, 0xc
call fcn.0040453c
ret