Function at 0x10015890
Capabilities:
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x10042028
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x1006c318]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 1
call fcn.10034950
lea ecx, [ebp + 0x64]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [ebp + 0x60]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor esi, esi
lea ecx, [ebp + 0x44]
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [ebp + 0x48]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, esi
je 0x1001609e
lea ecx, [ebp + 0x78]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10015923
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x1001609e
push esi
lea ecx, [ebp + 0x78]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [ebp + 0x18]
call fcn.10034f60
mov dword [ebp + 0x38], eax
cmp dword [ebp + 0x38], 0
je 0x10015edf
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1006c9f4], 0
je 0x10015edf
lea ecx, [ebp + 0x18]
call fcn.10034a70
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x38], eax
call fcn.100352a0
test eax, eax
jne 0x10015953
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x40]
push 0x10
lea ecx, [ebp + 0x18]
call edx
test eax, eax
jne 0x10015953
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x40]
push 4
lea ecx, [ebp + 0x18]
call edx
test eax, eax
jne 0x10015953
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x40]
push 2
lea ecx, [ebp + 0x18]
call edx
test eax, eax
jne 0x10015953
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.10034a80
push eax
lea ecx, [ebp + 0x64]
mov byte [ebp - 4], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [ebp]
mov byte [ebp - 4], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp + 4]
push ecx
lea ecx, [ebp + 0x18]
call fcn.10034ca0
mov ecx, eax
mov byte [ebp - 4], 8
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
lea ecx, [ebp + 0x64]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
sub eax, esi
push eax
lea edx, [ebp + 8]
push edx
lea ecx, [ebp + 0x64]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
push eax
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 9
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp + 4]
mov byte [ebp - 4], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x5c
lea ecx, [ebp + 0x60]
call dword [sym.imp.MFC80U.DLL_Ordinal_5524]
lea ecx, [ebp + 0x60]
lea esi, [eax + 1]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
cmp eax, esi
je 0x10015a6a
push 0x5c
lea ecx, [ebp + 0x60]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
push eax
lea ecx, [ebp + 0x64]
call dword [sym.imp.MFC80U.DLL_Ordinal_3841]
mov edi, dword [ebp + 0x70]
lea esi, [edi + 0xc]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jg 0x10015a8d
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jle 0x10015ba9
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x18]
call fcn.10035180
sub esp, 8
mov eax, esp
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x34], esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.10015870
test al, al
jne 0x10015953
push str._Y._m._d
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp + 0x3c]
call fcn.10013910
push eax
mov byte [ebp - 4], 0xa
call fcn.100153e0
add esp, 4
test eax, eax
lea ecx, [ebp + 0xc]
sete bl
mov byte [ebp - 4], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test bl, bl
jne 0x10015953
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jle 0x10015b4e
lea edx, [ebp + 0x54]
push edx
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp + 0x58]
push ecx
push esi
call fcn.10014630
add esp, 0x10
test eax, eax
je 0x10015b4e
mov edx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x58]
push 0xffffffffffffffff
push 0
push 0
push 0
push edx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10013810
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [ebp + 0x3c]
call fcn.10015870
test al, al
jne 0x10015953
lea esi, [edi + 0x10]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jle 0x10015ba9
lea ecx, [ebp + 0x54]
push ecx
lea edx, [ebp + 0x5c]
push edx
lea eax, [ebp + 0x58]
push eax
push esi
call fcn.10014630
add esp, 0x10
test eax, eax
je 0x10015ba9
mov ecx, dword [ebp + 0x54]
mov edx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
push 0xffffffffffffffff
push 0x3b
push 0x3b
push 0x17
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.10013810
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [ebp + 0x3c]
call fcn.100138f0
test al, al
jne 0x10015953
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp + 0x64]
push eax
mov dword [ebp + 0x34], 0
mov byte [ebp - 4], 0xb
call edx
mov esi, eax
test esi, esi
mov dword [ebp + 0x34], esi
jne 0x10015bd7
mov byte [ebp - 4], 6
jmp 0x10015953
mov dword [ebp - 4], 6
jmp 0x10015c38
mov ebx, dword [ebp + 0x70]
lea ecx, [ebx + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jg 0x10015c59
lea ecx, [ebx + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jle 0x10015e6e
push str._Y._m._d
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.10023de0
push eax
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0xe
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xd
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push str._H:_M
lea ecx, [ebp + 0x14]
push ecx
mov ecx, esi
call fcn.10023de0
push eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0xf
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea edx, [ebp + 0x54]
push edx
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp + 0x58]
push ecx
lea edx, [ebp + 0x44]
push edx
mov dword [ebp - 4], 6
call fcn.10014630
add esp, 0x10
test eax, eax
jne 0x10015ce9
test esi, esi
je 0x10015953
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
jmp 0x10015953
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp + 0x4c]
push ecx
lea edx, [ebp + 0x48]
push edx
call fcn.10013e70
add esp, 0xc
test eax, eax
je 0x10015cd2
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x54]
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov eax, dword [ebp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x58]
push edx
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.10013810
mov edx, dword [eax]
mov dword [ebp + 0x3c], edx
mov eax, dword [eax + 4]
lea ecx, [ebx + 0x14]
mov dword [ebp + 0x40], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jle 0x10015dca
lea ecx, [ebp + 0x54]
push ecx
lea edx, [ebp + 0x5c]
push edx
lea eax, [ebp + 0x58]
push eax
lea eax, [ebx + 0x14]
push eax
call fcn.10014630
add esp, 0x10
test eax, eax
je 0x10015dca
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
lea edi, [ebx + 0x18]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jle 0x10015d80
lea ecx, [ebp + 0x50]
push ecx
lea edx, [ebp + 0x4c]
push edx
push edi
call fcn.10013e70
add esp, 0xc
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x54]
push 0xffffffffffffffff
push 0
push eax
mov eax, dword [ebp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x58]
push edx
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.10013810
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [ebp + 0x3c]
call fcn.10015870
test al, al
je 0x10015dca
test esi, esi
je 0x10015953
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x10015953
lea edi, [ebx + 0x1c]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jle 0x10015e6e
lea ecx, [ebp + 0x54]
push ecx
lea edx, [ebp + 0x5c]
push edx
lea eax, [ebp + 0x58]
push eax
push edi
call fcn.10014630
add esp, 0x10
test eax, eax
je 0x10015e6e
xor eax, eax
lea edi, [ebx + 0x20]
mov ecx, edi
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jle 0x10015e3b
lea ecx, [ebp + 0x50]
push ecx
lea edx, [ebp + 0x4c]
push edx
push edi
call fcn.10013e70
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x54]
add esp, 0xc
push 0xffffffffffffffff
push 0x3b
push eax
mov eax, dword [ebp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x58]
push edx
push eax
push ecx
lea ecx, [ebp - 0x20]
jmp 0x10015e52
mov edx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x58]
push 0xffffffffffffffff
push 0x3b
push 0x3b
push 0x17
push edx
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.10013810
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp + 0x3c]
call fcn.100138f0
test al, al
jne 0x10015db3
lea ecx, [ebp + 0x64]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov ecx, dword [ebx + 0x24]
push eax
push 0x10055e5c
push ecx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
mov edx, dword [ebx]
add esp, 0xc
push 0
push 0
push 0x540
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebx + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push esi
call edx
jmp 0x10015953
lea ecx, [ebp + 0x18]
call sub.MFC80U.DLL_Ordinal_1431
cmp dword [0x1006c9f4], 0
je 0x1001609e
push 0
push 0x1005447c
lea ecx, [ebp + 0x18]
call fcn.10034f60
test eax, eax
je 0x10016096
mov edi, dword [ebp + 0x70]
mov ebx, dword [sym.imp.MFC80U.DLL_Ordinal_2311]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1006c9f4], 0
je 0x10016096
lea ecx, [ebp + 0x18]
call fcn.10034a70
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x38], eax
call fcn.100352a0
test eax, eax
jne 0x1001608c
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x40]
push 4
lea ecx, [ebp + 0x18]
call edx
test eax, eax
jne 0x1001608c
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x40]
push 2
lea ecx, [ebp + 0x18]
call edx
test eax, eax
jne 0x1001608c
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x40]
push 0x10
lea ecx, [ebp + 0x18]
call edx
test eax, eax
je 0x1001608c
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x18]
call fcn.10034a80
push eax
lea ecx, [ebp + 0x64]
mov byte [ebp - 4], 0x11
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp + 0x18]
call fcn.10034ca0
mov ecx, eax
mov byte [ebp - 4], 0x12
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
lea ecx, [ebp + 0x64]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
sub eax, esi
push eax
lea edx, [ebp + 0x10]
push edx
lea ecx, [ebp + 0x64]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
push eax
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 0x13
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [ebp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x5c
lea ecx, [ebp + 0x60]
call dword [sym.imp.MFC80U.DLL_Ordinal_5524]
lea ecx, [ebp + 0x60]
lea esi, [eax + 1]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
cmp eax, esi
je 0x10016031
push 0x5c
lea ecx, [ebp + 0x60]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
push eax
lea ecx, [ebp + 0x64]
call dword [sym.imp.MFC80U.DLL_Ordinal_3841]
lea ecx, [ebp + 0x64]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov eax, dword [edi + 0x24]
push 0x10055e5c
push eax
call ebx
mov ecx, dword [edi]
add esp, 0xc
push 0
push 0
push 0x540
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push ecx
lea edx, [ebp + 0x78]
mov ecx, esp
mov dword [ebp + 4], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push ecx
lea eax, [ebp + 0x64]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
mov byte [ebp - 4], 0x14
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push edi
mov byte [ebp - 4], 6
call fcn.10015890
add esp, 0xc
cmp dword [ebp + 0x38], 0
jne 0x10015f14
lea ecx, [ebp + 0x18]
call sub.MFC80U.DLL_Ordinal_1431
lea ecx, [ebp + 0x48]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp + 0x44]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp + 0x60]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp + 0x64]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 1
call fcn.10034970
lea ecx, [ebp + 0x74]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp + 0x78]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x68
mov esp, ebp
pop ebp
ret