Function at 0x6736dc
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x6736e4
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x67395a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0xc]
mov edx, 0x673974
call fcn.00404d30
mov eax, dword [0x6ec57c]
mov eax, dword [eax]
mov eax, dword [eax + 0x340]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [0x6ec57c]
mov eax, dword [eax]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x218]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x673980
mov edx, 0x67398c
mov eax, dword [ebp - 0xc]
call fcn.00448ed8
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0xc]
call fcn.00404d30
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00673dec
mov eax, dword [ebp - 0x3c]
call fcn.00405148
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
lea eax, [ebp - 0x14]
call fcn.00409ef0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, eax
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
mov eax, dword [eax + 0x218]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
mov dl, 1
call fcn.00491164
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x673998
mov edx, 0x6739a4
mov eax, dword [ebp - 0x10]
call fcn.00448ed8
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x10]
call fcn.00404d30
mov edx, dword [ebp - 0x14]
mov eax, 0x673974
call fcn.0040528c
test eax, eax
jle 0x67381b
jmp 0x67380a
mov edx, dword [ebp - 0x14]
mov eax, 0x673974
call fcn.0040528c
mov ecx, eax
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.004051e8
mov edx, dword [ebp - 0x14]
mov eax, 0x673974
call fcn.0040528c
test eax, eax
jg 0x6737ee
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00405094
je 0x673836
mov eax, dword [ebp - 0xc]
call fcn.00405148
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
lea eax, [ebp - 0x48]
mov ecx, 0x6739b0
mov edx, dword [ebp - 0xc]
call fcn.00404f9c
mov eax, dword [ebp - 0x48]
call fcn.00409bcc
test al, al
je 0x67392c
mov dl, 1
mov eax, dword [0x41aa50]
call fcn.00403efc
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
mov ecx, 0x6739b0
mov edx, dword [ebp - 0xc]
call fcn.00404f9c
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 0x6739c0
push dword [ebp - 0x10]
push 0x6739cc
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00405010
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x67392c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x6738ef
mov edx, dword [ebp - 0x18]
mov eax, 0x6739d8
call fcn.0040528c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jle 0x6738de
mov byte [ebp - 0x29], 1
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push 0x6739ec
push dword [ebp - 0x10]
push 0x6739cc
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00405010
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x18]
call fcn.00405094
je 0x673924
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, dword [ebp - 0x1c]
jge 0x6738c4
lea eax, [ebp - 0x28]
call fcn.0040eba0
mov al, byte [ebp - 0x29]
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x673961
lea eax, [ebp - 0x54]
mov edx, 0xa
call fcn.00404cbc
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404cbc
ret