Function at 0x40a4c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4298a0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x446044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], 0x80004005
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebx + 0x90], esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
mov ecx, ebx
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebx + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp edi, esi
je 0x40a545
lea esi, [ebx + 0x78]
mov eax, dword [esi]
test eax, eax
je 0x40a533
mov dword [esi], 0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov eax, dword [edi]
push esi
push 0x43e248
push edi
mov ecx, dword [eax]
call ecx
mov dword [ebp - 0x14], eax
xor esi, esi
mov byte [ebx + 0x94], 1
mov eax, dword [ebx + 0x60]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x3c]
call eax
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax]
mov edx, dword [ebx + 0x84]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax]
mov edx, dword [ebx + 0x84]
push edx
push eax
mov eax, dword [ecx + 0x98]
call eax
lea esi, [ebx + 0x3c]
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x40a5d2
lea edx, [ebx + 0x38]
push edx
mov ecx, esi
call fcn.00401cd0
mov ecx, 0x2e
call fcn.00401de0
lea ecx, [eax + 1]
lea eax, [ebp - 0x2c]
push eax
push esi
xor edx, edx
call fcn.004055e0
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004041e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401130
push 0x42c8b0
mov ecx, esi
call fcn.00401700
lea ecx, [ebx + 0x48]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004048c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00420f40
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x20]
call fcn.00420590
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00401190
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00401130
push 0x42c8b8
lea ecx, [ebp - 0x18]
call fcn.00401700
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00420590
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x18]
call fcn.00401190
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00401130
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00420590
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x18]
call fcn.00401190
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00401130
push 0x42c8bc
lea ecx, [ebp - 0x18]
call fcn.00401700
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00420590
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x18]
call fcn.00401190
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00401130
mov edi, dword [ebx + 0x60]
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00409f40
mov esi, eax
mov byte [ebp - 4], 8
push 0x42c8c8
lea ecx, [ebp - 0x2c]
call fcn.00409f40
mov byte [ebp - 4], 9
mov esi, dword [esi]
mov eax, dword [eax]
mov edx, dword [edi]
lea ecx, [ebp - 0x28]
push ecx
push esi
push eax
push edi
mov edx, dword [edx + 0x20]
call edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2c]
push eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
push ecx
call edi
mov esi, dword [ebx + 0x60]
lea eax, [ebx + 0x3c]
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.004203d0
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x30]
call fcn.00409f40
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xb
push 0x42c8d0
lea ecx, [ebp - 0x20]
call fcn.00409f40
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
mov eax, dword [esi]
lea edx, [ebp - 0x28]
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
mov edx, dword [eax + 0x20]
call edx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x20]
push eax
call edi
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x30]
push ecx
call edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00401060
mov esi, dword [ebx + 0x60]
lea edx, [ebx + 0x34]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004203d0
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409f40
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0xe
push 0x42c8d8
lea ecx, [ebp - 0x30]
call fcn.00409f40
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
mov eax, dword [esi]
lea edx, [ebp - 0x28]
push edx
push ecx
mov ecx, dword [ebp - 0x34]
push ecx
push esi
mov edx, dword [eax + 0x20]
call edx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x30]
push eax
call edi
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x2c]
push ecx
call edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00401060
mov esi, dword [ebp + 0xc]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov eax, dword [edx + 0x30]
call eax
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x40a809
mov dword [ebp - 0x38], 0
push 0x4406b8
lea ecx, [ebp - 0x38]
push ecx
call sub.MSVCR80.dll__CxxThrowException
lea edx, [ebp - 0x40]
push edx
mov ecx, ebx
call fcn.0040b150
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x40a830
mov dword [ebp - 0x3c], 3
push 0x4406b8
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp - 0x40]
cmp eax, esi
jge 0x40a839
mov esi, eax
lea ecx, [ebx + 0x38]
lea edx, [ebp - 0x24]
push edx
call fcn.004204d0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x42c074
call fcn.00405960
add esp, 4
test al, al
jne 0x40a87a
lea ecx, [ebp - 0x24]
push ecx
mov ecx, 0x42c06c
call fcn.00405960
add esp, 4
test al, al
jne 0x40a87a
cmp word [ebx + 0x50], 0
je 0x40a87c
xor esi, esi
mov edx, dword [ebx]
push 0
mov ecx, ebx
mov eax, dword [edx + 0x30]
call eax
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x40a8a3
mov dword [ebp - 0x44], 0
push 0x4406b8
lea ecx, [ebp - 0x44]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov edx, dword [ebx + 0x60]
mov dword [ebp + 0xc], edx
mov eax, dword [ebx + 0x3c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00409f40
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
push ecx
mov eax, dword [edx + 0x88]
call eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x34]
push ecx
call edi
test esi, esi
jne 0x40a941
lea edx, [ebp - 0x24]
push edx
mov ecx, ebx
call fcn.0040be50
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x40a902
mov dword [ebp - 0x48], 1
push 0x4406b8
lea eax, [ebp - 0x48]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov byte [ebx + 0x94], 1
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push 0
lea edx, [ebx + 0x50]
push edx
push eax
mov eax, dword [ecx + 0x84]
call eax
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x40a9b7
mov dword [ebp - 0x4c], 4
push 0x4406b8
lea ecx, [ebp - 0x4c]
push ecx
call sub.MSVCR80.dll__CxxThrowException
cmp esi, 3
je 0x40a94b
cmp esi, 1
jne 0x40a9b7
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x40a95c
mov edx, dword [eax]
push 1
push eax
mov eax, dword [edx + 0x28]
call eax
mov byte [ebx + 0x94], 0
mov ecx, dword [ebx + 0x6c]
mov dword [ebp + 0xc], ecx
mov eax, dword [ebx + 0x38]
push eax
lea ecx, [ebp - 0x34]
call fcn.00409f40
mov byte [ebp - 4], 0x12
mov ecx, dword [ebx + 0x60]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push ecx
push esi
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [edx + 0x28]
call ecx
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x34]
push edx
call edi
test esi, esi
jge 0x40a9b7
mov dword [ebp - 0x50], 4
push 0x4406b8
lea eax, [ebp - 0x50]
push eax
call sub.MSVCR80.dll__CxxThrowException
cmp dword [ebx + 0x84], 0
jne 0x40a9cb
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov eax, dword [edx + 0x34]
call eax
mov edx, dword [ebx]
push 0
mov ecx, ebx
mov eax, dword [edx + 0x34]
call eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00401060
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401060
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401060
mov dword [ebp - 4], 0xffffffff
jmp 0x40aac9
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40aad5
mov ecx, dword [ebx + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc