Function at 0x3985770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x3a2f5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x6b4
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x6b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x6c8]
mov dword fs:[0], eax
mov edi, dword [esp + 0x6e0]
mov esi, dword [esp + 0x6d8]
mov ebp, dword [esp + 0x6dc]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], edi
call fcn.039efdc0
xor ebx, ebx
mov dword [esp + 0x6d0], ebx
lea ecx, [esp + 0x100]
call fcn.039efdc0
mov byte [esp + 0x6d0], 1
lea ecx, [esp + 0x1a4]
call fcn.039efdc0
mov byte [esp + 0x6d0], 2
cmp esi, ebx
je 0x3986046
cmp word [esi], bx
je 0x3986046
push esi
call fcn.039f5270
add esp, 4
test al, al
je 0x3985823
push 0x7b
jmp 0x3986048
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x60]
push ecx
push esi
call fcn.03975600
add esp, 0xc
test al, al
jne 0x398587c
mov byte [esp + 0x6d0], 1
lea ecx, [esp + 0x1a4]
call fcn.039ef660
mov byte [esp + 0x6d0], bl
lea ecx, [esp + 0x100]
call fcn.039ef660
mov dword [esp + 0x6d0], 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.039ef660
xor al, al
jmp 0x398608e
mov eax, dword [esp + 0x5c]
push ebx
push ebx
push ebx
lea edx, [esp + 0x1b0]
push edx
push eax
call fcn.03976d20
add esp, 0x14
test al, al
jne 0x398595b
lea ecx, [esp + 0x4d8]
call fcn.039efdc0
mov byte [esp + 0x6d0], 3
mov edx, dword [esp + 0x5c]
push ebx
lea ecx, [esp + 0x4dc]
push ecx
push edx
call fcn.03973bd0
add esp, 0xc
test al, al
je 0x3985930
mov eax, dword [esp + 0x4d8]
push 7
push 0x10
push eax
call fcn.03974d90
add esp, 0xc
test al, al
jne 0x3985930
cmp edi, ebx
je 0x398590c
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
shr edx, 0x15
test dl, 1
je 0x398590c
mov eax, dword [esp + 0x4d8]
push eax
push str.__Parent_directory__ls_does_not_exist_
push edi
call fcn.039f0800
add esp, 0xc
push 3
call dword [0x3a5fde0]
mov dword [ebp], ebx
mov byte [esp + 0x6d0], 2
lea ecx, [esp + 0x4d8]
call fcn.039ef660
jmp 0x3986051
cmp edi, ebx
je 0x3985957
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
shr edx, 0x15
test dl, 1
je 0x3985957
mov eax, dword [esp + 0x5c]
push eax
push str.__GetLongPathNameW_reports__ls_does_not_exist_
push edi
call fcn.039f0800
add esp, 0xc
push 2
jmp 0x398590e
mov esi, dword [esp + 0x1a4]
push esi
call fcn.039734c0
add esp, 4
test al, al
je 0x398583a
lea ecx, [esp + 0x390]
call fcn.039efdc0
mov byte [esp + 0x6d0], 4
lea ecx, [esp + 0x390]
push ecx
push esi
call fcn.039d9a90
mov esi, eax
add esp, 8
lea ecx, [esp + 0x248]
mov dword [esp + 0x28], esi
call fcn.039efdc0
mov byte [esp + 0x6d0], 5
push 1
lea edx, [esp + 0x24c]
push edx
push esi
call fcn.03984510
push ebx
lea eax, [esp + 0x110]
push eax
push esi
call fcn.03973bd0
add esp, 0x18
lea ecx, [esp + 0x30]
mov byte [esp + 0x17], al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call fcn.0394ec90
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x30]
call fcn.03953a00
lea ecx, [esp + 0x30]
call fcn.0394fd10
mov dword [esp + 0x2c], eax
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esp + 0x248]
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi*4 + 0x3a755ac]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.039649f0
add esp, 0x18
cmp eax, 1
je 0x3985c61
cmp eax, ebx
jne 0x3985aa6
push edi
lea eax, [esp + 0x54]
push eax
mov eax, dword [esi*4 + 0x3a755ac]
lea ecx, [esp + 0x4e0]
push ecx
lea edx, [esp + 0x64]
push edx
push ebx
push 1
push ebx
push 0x3a3ad58
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], 0x60
call fcn.03964240
test eax, eax
jne 0x3985b6b
mov ecx, dword [esp + 0x28]
push ecx
call fcn.039855b0
add esp, 4
test al, al
jne 0x3985caa
push 0x91
jmp 0x3985c63
cmp eax, 2
jne 0x3985b6b
cmp byte [esp + 0x17], bl
je 0x3985b6b
cmp dword [esp + 0x1c], 1
jle 0x3985b6b
lea ecx, [esp + 0x2ec]
call fcn.039efdc0
mov byte [esp + 0x6d0], 0xc
mov eax, dword [esp + 0x100]
push 1
lea edx, [esp + 0x2f0]
push edx
push eax
call fcn.03984510
mov eax, dword [esp + 0x2f8]
push edi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi*4 + 0x3a755ac]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.039649f0
mov edi, eax
mov eax, dword [esi*4 + 0x3a755ac]
add esp, 0x24
push eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
call fcn.0394edf0
mov eax, dword [eax]
and eax, 7
cmp edi, ebx
jne 0x3985b41
cmp eax, 4
je 0x3985f16
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x24]
jle 0x3985b53
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x2ec]
call fcn.039ef660
mov edi, dword [esp + 0x20]
inc esi
cmp esi, 2
jl 0x3985a10
mov esi, dword [esp + 0x2c]
cmp esi, 3
je 0x3985c61
cmp esi, 4
je 0x3985c61
lea ecx, [esp + 0x57c]
call fcn.039efdc0
mov byte [esp + 0x6d0], 0xd
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x57c]
push edx
push eax
call fcn.039f8d10
mov ecx, dword [esp + 0x584]
add esp, 8
push ecx
cmp esi, 1
jne 0x3986024
call dword [0x3a5feec]
or esi, 0xffffffff
cmp eax, esi
jne 0x3985f32
push 2
call dword [0x3a5fde0]
mov dword [ebp], ebx
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x57c]
call fcn.039ef660
mov byte [esp + 0x6d0], 5
lea ecx, [esp + 0x30]
call fcn.0394fcd0
mov byte [esp + 0x6d0], 4
lea ecx, [esp + 0x248]
call fcn.039ef660
mov byte [esp + 0x6d0], 2
lea ecx, [esp + 0x390]
call fcn.039ef660
mov byte [esp + 0x6d0], 1
lea ecx, [esp + 0x1a4]
call fcn.039ef660
mov byte [esp + 0x6d0], bl
lea ecx, [esp + 0x100]
call fcn.039ef660
mov dword [esp + 0x6d0], esi
jmp 0x3986083
push 2
call dword [0x3a5fde0]
mov dword [ebp], ebx
mov byte [esp + 0x6d0], 5
lea ecx, [esp + 0x30]
call fcn.0394fcd0
mov byte [esp + 0x6d0], 4
lea ecx, [esp + 0x248]
call fcn.039ef660
mov byte [esp + 0x6d0], 2
lea ecx, [esp + 0x390]
call fcn.039ef660
jmp 0x3986051
cmp byte [esp + 0x4d8], 1
je 0x3985cc9
test byte [esp + 0x520], 0x10
jne 0x3985d8b
push 0x10b
jmp 0x3985c63
lea ecx, [esp + 0x434]
call fcn.039efdc0
mov byte [esp + 0x6d0], 7
mov edx, dword [esp + 0x248]
push edx
lea eax, [esp + 0x438]
push eax
call fcn.0394f4b0
add esp, 8
lea ecx, [esp + 0x620]
call fcn.039efdc0
mov byte [esp + 0x6d0], 8
mov edx, dword [esp + 0x434]
lea ecx, [esp + 0x620]
push ecx
push edx
call fcn.039f8d10
mov eax, dword [esp + 0x628]
add esp, 8
push eax
call dword [0x3a5fd80]
mov dword [ebp], eax
cmp eax, ebx
jne 0x3985d63
mov byte [esp + 0x6d0], 7
lea ecx, [esp + 0x620]
call fcn.039ef660
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x434]
call fcn.039ef660
jmp 0x3985c6c
mov byte [esp + 0x6d0], 7
lea ecx, [esp + 0x620]
call fcn.039ef660
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x434]
call fcn.039ef660
lea ecx, [esp + 0x2ec]
call fcn.039efdc0
mov byte [esp + 0x6d0], 9
mov ecx, dword [0x3a56b80]
push ecx
push 0x3a465b8
lea ecx, [esp + 0x2f4]
call fcn.039efdd0
mov edx, dword [0x3a56b80]
push edx
push ebx
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x2f8]
call fcn.039eff20
mov esi, dword [esi*4 + 0x3a755ac]
mov ecx, dword [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x38]
call fcn.0394edf0
mov eax, dword [eax]
mov ecx, dword [esp + 0x2ec]
and eax, 7
cmp eax, 4
setne dl
mov byte [esp + 0x20], dl
mov eax, dword [esp + 0x20]
push 1
push eax
push ecx
lea edx, [esp + 0x3c]
push 0x80000002
push edx
call fcn.039675a0
add esp, 0x14
cmp word [esp + 0x4e0], bx
je 0x3985ef1
cmp byte [esp + 0x17], bl
je 0x3985ef1
lea ecx, [esp + 0x620]
call fcn.039efdc0
mov byte [esp + 0x6d0], 0xa
mov ecx, dword [esp + 0x100]
push 1
lea eax, [esp + 0x624]
push eax
push ecx
call fcn.03984510
add esp, 0xc
lea ecx, [esp + 0x434]
call fcn.039efdc0
mov byte [esp + 0x6d0], 0xb
mov edx, dword [0x3a56b80]
push edx
push 0x3a465b8
lea ecx, [esp + 0x43c]
call fcn.039efdd0
mov eax, dword [0x3a56b80]
push eax
push ebx
lea ecx, [esp + 0x628]
push ecx
lea ecx, [esp + 0x440]
call fcn.039eff20
mov eax, dword [esp + 0x434]
push ebx
lea edx, [esp + 0x4e4]
push edx
push eax
lea ecx, [esp + 0x3c]
push 0x80000002
push ecx
call fcn.03966750
add esp, 0x14
mov byte [esp + 0x6d0], 0xa
lea ecx, [esp + 0x434]
call fcn.039ef660
mov byte [esp + 0x6d0], 9
lea ecx, [esp + 0x620]
call fcn.039ef660
call fcn.039dfa90
mov dword [ebp], 1
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x2ec]
call fcn.039ef660
jmp 0x3985c6c
mov dword [ebp], ebx
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x2ec]
call fcn.039ef660
jmp 0x3985c6c
test al, 0x10
jne 0x3985f40
push 0x10b
jmp 0x3985bd8
mov edx, dword [esp + 0x28]
push edx
call fcn.039855b0
add esp, 4
test al, al
jne 0x3985f5b
push 0x91
jmp 0x3985bd8
lea ecx, [esp + 0x434]
call fcn.039efdc0
mov byte [esp + 0x6d0], 0xe
mov ecx, dword [esp + 0x5c]
push 1
lea eax, [esp + 0x438]
push eax
push ecx
call fcn.03984510
add esp, 0xc
lea ecx, [esp + 0x2ec]
call fcn.039efdc0
mov byte [esp + 0x6d0], 0xf
mov edx, dword [0x3a56b80]
push edx
push 0x3a465b8
lea ecx, [esp + 0x2f4]
call fcn.039efdd0
mov eax, dword [0x3a56b80]
push eax
push ebx
lea ecx, [esp + 0x43c]
push ecx
lea ecx, [esp + 0x2f8]
call fcn.039eff20
mov edx, dword [esp + 0x2ec]
push 1
push 1
push edx
lea eax, [esp + 0x3c]
push 0x80000002
push eax
call fcn.039675a0
add esp, 0x14
call fcn.039dfa90
mov dword [ebp], 1
mov byte [esp + 0x6d0], 0xe
lea ecx, [esp + 0x2ec]
call fcn.039ef660
mov byte [esp + 0x6d0], 0xd
lea ecx, [esp + 0x434]
call fcn.039ef660
jmp 0x3985be1
call dword [0x3a5fd80]
mov dword [ebp], eax
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x57c]
call fcn.039ef660
jmp 0x3985c6c
push 3
call dword [0x3a5fde0]
mov dword [ebp], ebx
mov byte [esp + 0x6d0], 1
lea ecx, [esp + 0x1a4]
call fcn.039ef660
mov byte [esp + 0x6d0], bl
lea ecx, [esp + 0x100]
call fcn.039ef660
mov dword [esp + 0x6d0], 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.039ef660
mov al, 1
mov ecx, dword [esp + 0x6c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6b0]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x6c0
ret