Function at 0x445b1c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa3c
mov ecx, 0xc8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp eax, ecx
ja 0x445d37
je 0x445ccd
sub eax, 0x64
je 0x445c9e
sub eax, 3
je 0x445c90
sub eax, 6
je 0x445c10
sub eax, 0x14
je 0x445be7
dec eax
sub eax, 1
je 0x445bcc
sub eax, 0x44
jne 0x445d58
cmp dword [edi + 8], eax
je 0x445e64
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x445e64
push dword [edi + 8]
mov ebx, 0x504ce0
push ebx
call fcn.0049e71a
pop ecx
pop ecx
test eax, eax
je 0x445baf
push dword [edi + 8]
push 0x104
push ebx
call fcn.0040c4d6
push 0
push 0x9d63
push 0x111
push dword [0x531f70]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x445e64
push 1
push dword [edi + 8]
call fcn.00492553
push eax
push dword [edi + 8]
call fcn.0040def5
add esp, 0x10
jmp 0x445e64
push 0
push dword [edi + 8]
call fcn.00405018
mov esi, eax
push esi
call fcn.004a1b5f
push 1
push esi
call fcn.00492553
push eax
push esi
call fcn.0040def5
add esp, 0x1c
jmp 0x445e64
mov esi, 0x200
lea eax, [ebp - 0x21c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.0049a3b0
push esi
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.0049a3b0
add esp, 0x18
lea eax, [ebp - 0x21c]
push esi
push eax
push dword [0x531f80]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [esi - 1]
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
push ebx
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 8]
call esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004a194c
pop ecx
pop ecx
mov dword [0x4fa5e8], eax
jmp 0x445e64
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x445e64
xor eax, eax
mov word [ebp - 0xa3c], ax
cmp dword [edi + 8], eax
je 0x445cbd
lea eax, [ebp - 0xa3c]
push eax
push dword [edi + 8]
mov ecx, eax
call fcn.0041559c
xor ebx, ebx
lea eax, [ebp - 0xa3c]
push ebx
push ebx
push eax
jmp 0x445e57
cmp dword [edi + 8], 0
je 0x445e64
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x445e64
xor ebx, ebx
push ebx
push dword [edi + 8]
call fcn.00405018
mov esi, eax
mov edi, 0x504ce0
push esi
push edi
call fcn.0049e71a
add esp, 0x10
test eax, eax
je 0x445d14
push esi
push 0x104
push edi
call fcn.0040c4d6
push ebx
push 0x9d63
push 0x111
push dword [0x531f70]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call fcn.004a1b5f
pop ecx
jmp 0x445e64
sub eax, 0x44c
je 0x445e50
sub eax, 0x787
je 0x445dc1
sub eax, 4
je 0x445d7a
sub eax, 1
je 0x445d69
sub eax, 7
je 0x445d5f
xor eax, eax
jmp 0x445e67
push dword [edi + 8]
call fcn.0042fd9a
jmp 0x445d31
push dword [edi + 8]
push dword [0x531f70]
call fcn.0040cb16
pop ecx
jmp 0x445d31
mov ecx, 0x5322a0
xor ebx, ebx
mov dword [ebp - 4], ecx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x445d87
sub ecx, edx
mov dword [ebp - 0xc], 0xbd7
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [0x531f70]
push 0x4a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x445e67
mov edx, dword [edi + 8]
xor ebx, ebx
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x445dcb
sub ecx, esi
mov dword [ebp - 0x1c], edx
sar ecx, 1
add edx, 2
mov edi, 0x800
push edi
push ebx
lea eax, [edx + ecx*2]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xa1c]
push eax
call fcn.0049a3b0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0xa1c]
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, 0xbd3
lea eax, [ebp - 0x1c]
mov ecx, 0x400
mov dword [ebp - 0x10], ecx
push ebx
push eax
push ecx
push dword [0x531f70]
call esi
test eax, eax
jne 0x445e31
mov word [ebp - 0xa1c], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [0x531f70]
mov dword [ebp - 8], edi
push 0x4a
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call esi
jmp 0x445e67
xor ebx, ebx
push ebx
push ebx
push dword [edi + 8]
call fcn.00491763
add esp, 0xc
call fcn.0045c8b5
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret