Function at 0x436bb0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x258
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4a2030
mov edx, dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edx, edx
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x43700e
cmp word [edx], 0
je 0x43700e
lea eax, [ebp - 0x264]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], 0
mov word [ebp - 0x264], 0
mov dword [ebp - 0x10], 3
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
jbe 0x436c3c
xor edi, edi
jmp 0x436fd7
lea ebx, [ebp - 0x264]
push ebx
call fcn.005d3244
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x44]
cmp eax, esi
jae 0x436c75
sub esp, 0xc
mov al, byte [ebp - 0x3c]
lea ecx, [ebp - 0x58]
mov byte [esp + 4], al
lea eax, [ebp - 0x264]
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00405590
jmp 0x436c9a
cmp eax, 7
jbe 0x436c7f
mov edi, dword [ebp - 0x58]
jmp 0x436c82
lea edi, [ebp - 0x58]
mov eax, esi
mov dword [ebp - 0x48], esi
add eax, esi
push eax
push ebx
push edi
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
push 0x208
push 0
lea esi, [ebp - 0x264]
push esi
call fcn.0061e8c0
add esp, 0xc
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], 0
cmp eax, 0x103
jb 0x436cec
xor edi, edi
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], 0
jmp 0x436fa0
lea edi, [ebp - 0x264]
push edi
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x436d23
sub esp, 0xc
mov al, byte [ebp - 0x20]
lea ecx, [ebp - 0x3c]
mov byte [esp + 4], al
lea eax, [ebp - 0x264]
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00405590
jmp 0x436d3f
mov eax, esi
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x3c]
add eax, esi
push eax
push edi
push ecx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x3c], 0
xor edi, edi
cmp dword [ebp - 0x2c], 0
je 0x436fa0
cmp dword [ebp - 0x28], 7
jbe 0x436d56
mov eax, dword [ebp - 0x3c]
jmp 0x436d59
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x10], 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
lea esi, [ebp - 0x264]
mov edi, 0
je 0x436fa0
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], 7
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
jbe 0x436d9c
mov ebx, dword [ebp - 0x3c]
jmp 0x436d9f
lea ebx, [ebp - 0x3c]
cmp edi, 7
ja 0x436dc4
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
mov ecx, 7
movsd qword [ebp - 0x25c], xmm1
movsd qword [ebp - 0x264], xmm0
jmp 0x436e40
mov edx, edi
mov ecx, 0x7ffffffe
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x40], ebx
or edx, 7
cmp edx, 0x7ffffffe
mov dword [ebp - 0x5c], edx
cmovb ecx, edx
lea eax, [ecx + ecx]
cmp ecx, 0x7ff
jb 0x436e10
cmp ecx, 0x7fffffee
jae 0x43703c
add eax, 0x25
push eax
call fcn.005d0220
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x436e1c
add eax, 2
push eax
call fcn.005d0220
add esp, 4
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
lea esi, [ebp - 0x264]
mov dword [ebp - 0x264], eax
lea ecx, [edi + edi + 2]
push ecx
push edx
push eax
call fcn.0061e340
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
cmp ecx, edi
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x250], ecx
jne 0x436e88
mov dword [ebp - 0x10], 5
sub esp, 0x10
mov al, byte [ebp - 0x20]
lea ecx, [ebp - 0x264]
mov byte [esp + 4], al
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x65857a
mov dword [esp], 1
call fcn.0040b010
mov ebx, dword [ebp + 8]
jmp 0x436eac
lea eax, [edi + 1]
cmp ecx, 7
mov dword [ebp - 0x254], eax
je 0x436e9c
mov esi, dword [ebp - 0x264]
mov ebx, dword [ebp + 8]
mov word [esi + edi*2], 0x5c
mov word [esi + edi*2 + 2], 0
push ebx
call fcn.005d3244
add esp, 4
mov edx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x254]
mov esi, edx
sub esi, ecx
cmp esi, eax
jae 0x436ef2
mov dword [ebp - 0x10], 5
sub esp, 0x10
mov cl, byte [ebp - 0x20]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x264]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], eax
call fcn.0040b010
jmp 0x436f29
lea esi, [ecx + eax]
lea edi, [ebp - 0x264]
cmp edx, 7
mov dword [ebp - 0x254], esi
jbe 0x436f0c
mov edi, dword [ebp - 0x264]
add eax, eax
lea ecx, [edi + ecx*2]
push eax
push ebx
push ecx
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
mov dword [ebp - 0x10], 5
cmp dword [ebp - 0x250], 7
lea eax, [ebp - 0x264]
jbe 0x436f3e
mov eax, dword [ebp - 0x264]
push eax
call fcn.005d8640
cmp dword [ebp - 0x44], 7
mov dword [ebp - 0x24], eax
jbe 0x436f52
mov eax, dword [ebp - 0x58]
jmp 0x436f55
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x436fa0
mov eax, dword [ebp - 0x264]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x436f96
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x437041
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x436fd7
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x436fcd
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x437030
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x43700e
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x437004
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x437024
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x258
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 2
call fcn.006207e0
mov dword [ebp - 0x10], 1
call fcn.006207e0
call fcn.005e8c60
mov dword [ebp - 0x10], 0
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x4370a4
mov eax, dword [ebp - 0x264]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x43709a
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4370c6
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], 0
add esp, 0x10
pop ebp
ret
call fcn.006207e0
nop dword [eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x43711e
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x437114
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x437137
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], 0
add esp, 0x10
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x43718e
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x437184
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x437193
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x10
pop ebp
ret
call fcn.006207e0
int3