Function at 0x436a80
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x250c
call fcn.00590180
mov eax, dword [0x5fe940]
mov dword [esp + 0x2508], eax
xor eax, eax
push ebx
push esi
push edi
mov byte [esp + 0x10], 0
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x310], 0
mov ecx, 0x3f
lea edi, [esp + 0x311]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x110], 0
mov ecx, 0x3f
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x210], 0
mov ecx, 0x3f
lea edi, [esp + 0x211]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0xd10], 0
mov ecx, 0x1ff
lea edi, [esp + 0xd11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x510], 0
mov ecx, 0x1ff
lea edi, [esp + 0x511]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x1d10], 0
mov ecx, 0x1ff
lea edi, [esp + 0x1d11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [ebp + 8]
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x1510], 0
mov ecx, 0x1ff
lea edi, [esp + 0x1511]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x210]
push eax
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x318]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.005921fa
lea eax, [esp + 0x24]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436ba1
sub eax, edx
mov dword [esp + 0xc], eax
je 0x436c30
mov ecx, dword [0x8d6574]
lea eax, [ecx + ebx]
lea edx, [esp + 0x410]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x436bc6
xor eax, eax
mov cl, byte [eax + 0x8c3370]
mov byte [eax + 0x8c3470], cl
inc eax
test cl, cl
jne 0x436bd2
lea eax, [esp + 0x410]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436bf0
mov edi, 0x8c3470
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x436c00
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0xd10]
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x436c21
jmp 0x436cdc
mov edi, 0x8c3470
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x436c36
mov bx, word [0x5b8714]
mov eax, dword [ebp + 8]
mov word [edi], bx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x436c50
mov edi, 0x8c3470
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x436c61
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x8c2910]
mov byte [esp + eax + 0xd10], cl
inc eax
test cl, cl
jne 0x436c80
lea edi, [esp + 0xd10]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x436ca0
mov eax, dword [ebp + 8]
mov word [edi], bx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436cb0
lea edi, [esp + 0xd10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x436cc1
mov ebx, dword [ebp + 8]
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [esp + 0xd10]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x436f2c
mov al, byte [esp + 0x10]
test al, al
je 0x436df6
cmp al, 0x63
je 0x436f3f
cmp al, 0x43
je 0x436f3f
lea eax, [esp + 0x310]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436d17
lea edi, [esp + 0x510]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x436d28
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x110]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x436d50
lea edi, [esp + 0x510]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x436d63
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x210]
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436d82
lea edi, [esp + 0x510]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x436d93
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [esp + 0x1514]
push eax
push 0x800
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, 0x8c2910
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x436dc7
sub eax, ecx
lea eax, [esp + eax + 0x1510]
lea edx, [esp + 0x510]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x436de0
mov al, byte [esp + 0x10]
test al, al
jne 0x436f0e
mov eax, 0x8c2910
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436e00
push 0
lea ecx, [esp + 0x1514]
push ecx
sub eax, edx
mov edx, dword [ebp + 8]
push 0x800
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x1d10]
push 0x8c2910
push eax
call fcn.0047b000
add esp, 8
test eax, eax
jne 0x436edb
lea eax, [esp + ebx + 0x1d10]
lea edx, [esp + 0x510]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x436e51
lea edi, [esp + 0x510]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x436e63
mov cx, word [0x5b8714]
lea eax, [esp + 0x110]
mov word [edi], cx
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436e80
lea edi, [esp + 0x510]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x436e91
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x210]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x436eb2
lea edi, [esp + 0x510]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x436ec5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [esp + 0x1d10]
push 0x8c2910
push edx
call fcn.0047b000
add esp, 8
test eax, eax
je 0x436f0e
lea eax, [esp + ebx + 0x1510]
lea edx, [esp + 0x510]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x436f04
lea eax, [esp + 0x510]
push eax
call fcn.004368c0
add esp, 4
lea ecx, [esp + 0xd10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x2514]
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2514]
xor eax, eax
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret