Function at 0x1000dee0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x1002b4b0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x84]
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [esi + 0x1a0], 0x10
mov ecx, dword [esi + 0x19c]
lea eax, [esi + 0x18c]
jb 0x1000df27
mov eax, dword [eax]
push ecx
push eax
call fcn.10006bd0
mov ebx, eax
xor edi, edi
add esp, 8
cmp ebx, edi
je 0x1000e183
xor eax, eax
cmp dword [ebx], 1
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], al
mov dword [esp + 0x140], edi
je 0x1000df5f
mov dword [0x1002d8d8], 0x80000
jmp 0x1000dfdc
mov esi, dword [ebx + 4]
mov ecx, dword [esi]
or edx, 0xffffffff
cmp dword [ecx + 4], edx
jg 0x1000df73
mov ecx, 0x10000
jmp 0x1000dfd6
cmp dword [esi + 4], edx
je 0x1000df84
mov edi, ecx
call fcn.10005fb0
or edx, 0xffffffff
xor edi, edi
mov ecx, dword [esi]
mov dword [esi + 4], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
mov dword [esp + 0x120], edi
mov dword [esp + 0x124], edi
mov dword [esp + 0x128], edi
mov dword [esp + 0x12c], edi
mov dword [esp + 0x130], edi
mov dword [esp + 0x134], edi
mov dword [esp + 0x138], edi
mov dword [esp + 0x13c], edi
mov dword [esp + 0x140], edi
xor ecx, ecx
mov dword [0x1002d8d8], ecx
xor esi, esi
mov dword [esp + 0x10], eax
cmp eax, edi
jle 0x1000e07a
cmp dword [ebx], 1
mov dword [esp + 0x18], edi
mov byte [esp + 0x1c], 0
mov dword [esp + 0x140], edi
je 0x1000e00b
mov dword [0x1002d8d8], 0x80000
jmp 0x1000e01d
mov ecx, dword [ebx + 4]
push esi
lea edx, [esp + 0x1c]
call fcn.10006190
mov dword [0x1002d8d8], eax
lea edx, [esp + 0x1c]
push 0x1002803c
push edx
call fcn.10010906
add esp, 8
test eax, eax
je 0x1000e06f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push esi
push 0x10028048
push 0xffffffffffffffff
call fcn.1000e500
add esp, 0x10
cmp dword [ebx], 1
je 0x1000e05d
mov dword [0x1002d8d8], 0x80000
jmp 0x1000e06f
mov ecx, dword [ebx + 4]
push esi
lea edx, [esp + 0x20]
call fcn.10006890
mov dword [0x1002d8d8], eax
inc esi
cmp esi, dword [esp + 0x10]
jl 0x1000dfea
cmp dword [ebx], 1
je 0x1000e08e
mov dword [0x1002d8d8], 0x80000
jmp 0x1000e141
mov esi, dword [ebx + 4]
cmp dword [esi + 4], 0xffffffff
je 0x1000e09e
mov edi, dword [esi]
call fcn.10005fb0
mov edi, dword [esi]
mov dword [esi + 4], 0xffffffff
test edi, edi
je 0x1000e0e6
cmp dword [edi + 0x7c], 0
je 0x1000e0b6
call fcn.10005fb0
mov eax, dword [edi]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000e0dd
cmp byte [eax + 0x10], 0
je 0x1000e0d4
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
call fcn.1000fd5b
add esp, 4
push edi
call fcn.1000fb71
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 0x138]
mov dword [0x1002d8d8], 0
test eax, eax
je 0x1000e109
push eax
call fcn.1000fd5b
add esp, 4
mov eax, dword [esi + 0x13c]
mov dword [esi + 0x138], 0
test eax, eax
je 0x1000e126
push eax
call fcn.1000fd5b
add esp, 4
push esi
mov dword [esi + 0x13c], 0
call fcn.1000fd5b
push ebx
call fcn.1000fd5b
add esp, 8
xor edi, edi
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 4]
push 4
push 0x10026205
push 0x10028058
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x1000e198
mov ecx, esi
call fcn.1000e1b0
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.1000f688
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
push edi
push 0x10026205
push 0x10028074
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000f688
mov esp, ebp
pop ebp
ret