Function at 0x403e33
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
mov ebx, eax
lea ecx, [ebx + 0x10]
push 3
mov byte [ebp - 9], 0
call fcn.0040cf2e
test eax, eax
je 0x403eae
lea esi, [eax + 4]
lea ecx, [ebx + 0x20]
push esi
mov dword [ebp - 4], esi
call fcn.00408018
mov eax, esi
lea edi, [ebp - 8]
call fcn.004072fc
mov esi, 0x43e578
mov edi, esi
call fcn.004060b8
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
call fcn.004070da
call fcn.00405bfd
push dword [eax]
lea eax, [ebx + 0xd4]
push eax
call fcn.004039dc
mov eax, dword [ebp - 4]
mov edi, 0x43e560
call fcn.004060b8
mov byte [ebp - 9], 1
jmp 0x403ebe
lea esi, [ebx + 0x20]
call fcn.00405bfd
push eax
mov ecx, esi
call fcn.00408018
lea eax, [ebx + 0x1c]
lea edi, [ebx + 0x7c]
call fcn.004060b8
lea esi, [ebx + 0x70]
lea edi, [ebx + 0x110]
mov eax, esi
call fcn.004060b8
push 1
mov eax, edi
call fcn.0040cb6e
mov eax, esi
lea edi, [ebp - 8]
call fcn.004072fc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
lea edi, [ebx + 0x20]
call fcn.00408186
test eax, eax
je 0x403f1a
mov esi, ebx
call fcn.00405be6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
push edi
lea esi, [ebp - 0x140]
call fcn.0040c470
xor edi, edi
test byte [ebx + 0x60], 2
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x403f6f
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.0040441e
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
push eax
call fcn.0040c81c
call fcn.0040c7da
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
je 0x403f63
push eax
lea edi, [ebx + 0x20]
call fcn.004080b7
push ebx
lea eax, [ebp - 0x104]
call fcn.00405197
lea edi, [ebx + 0x10]
push 6
mov ecx, edi
call fcn.0040cf2e
mov esi, eax
test esi, esi
je 0x403f88
push str.qhebu
jmp 0x403f9c
push 7
mov ecx, edi
call fcn.0040cf2e
mov esi, eax
test esi, esi
je 0x403fbe
push 0x437be4
lea eax, [ebp - 8]
call fcn.00409e9f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x140]
call fcn.0040c6ac
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
lea eax, [ebp - 0x140]
push eax
call fcn.0040c67b
test al, al
mov byte [ebx + 0x164], al
sete al
mov byte [0x43d2cc], al
push 0x4355a0
lea eax, [ebp - 8]
call fcn.004038d0
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.004081d8
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.00401663
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
mov edi, dword [ebp - 8]
push edi
call fcn.00403a48
test esi, esi
jne 0x404071
cmp byte [0x43e56c], 0
je 0x404071
push 1
push 0xcc
mov dword [ebx + 0x98], 3
call fcn.0040d8f4
pop ecx
pop ecx
lea eax, [edi - 0x10]
call fcn.004039c4
lea ebx, [ebp - 0x1c]
call fcn.00406cd7
lea esi, [ebp - 0xf0]
call fcn.0040431f
lea esi, [ebp - 0x130]
call fcn.00404299
lea edi, [ebp - 0x13c]
call fcn.004066f6
jmp 0x403f12
mov edi, 0xdc
push edi
lea esi, [ebx + 0x110]
call fcn.0040cbe3
test byte [ebx + 0x60], 2
je 0x4040a6
lea eax, [ebp - 0x140]
mov dword [ebp - 0x24], eax
push edi
lea edi, [ebp - 0x2c]
mov eax, ebx
mov dword [ebp - 0x2c], 0x435798
mov dword [ebp - 0x28], ebx
call fcn.00404984
push 0x8a
lea edi, [ebp - 0x38]
mov eax, ebx
mov dword [ebp - 0x38], 0x43579c
mov dword [ebp - 0x34], ebx
call fcn.00404984
cmp byte [ebp - 0x30], 0
je 0x4040d0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
jmp 0x40403e
lea eax, [ebp - 0x140]
push eax
push ebx
call fcn.0040535f
test al, al
je 0x404124
mov dword [ebp - 4], 1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
lea ebx, [ebp - 0x1c]
call fcn.00406cd7
lea esi, [ebp - 0xf0]
call fcn.0040431f
lea esi, [ebp - 0x130]
call fcn.00404299
lea edi, [ebp - 0x13c]
call fcn.004066f6
mov eax, dword [ebp - 4]
jmp 0x403f15
cmp byte [ebp - 9], 0
jne 0x404142
push ebx
call fcn.004051d2
test al, al
je 0x404142
lea eax, [ebx + 0x1c]
push eax
call fcn.00405272
mov dword [ebp - 4], eax
jmp 0x4040e8
lea eax, [ebp - 0x140]
push eax
mov esi, ebx
call fcn.00404c25
test eax, eax
jne 0x40413d
and dword [ebp - 0x40], 0
lea eax, [ebx + 0x20]
mov dword [ebp - 0x44], eax
mov al, byte [ebx + 0x164]
mov byte [ebp - 0x3c], al
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x50], eax
lea esi, [ebx + 0x110]
push 0xec
lea edi, [ebp - 0x58]
mov eax, ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], 0x4357a0
call fcn.00404984
cmp byte [ebp - 0x4c], 0
je 0x4040e1
lea eax, [ebx + 0x70]
mov edi, 0x43e57c
call fcn.004060b8
lea eax, [ebx + 0x7c]
mov edi, 0x43e580
call fcn.004060b8
push ebx
lea eax, [ebp - 0x140]
call fcn.00404457
cmp byte [ebx + 0x15c], 0
mov dword [ebp - 4], eax
je 0x4041da
or dword [ebp - 4], 0xffffffff
jmp 0x4040e8
mov eax, dword [ebx + 0x1c]
sub eax, 0x10
call fcn.00407082
add eax, 0x10
cmp dword [eax - 0xc], 0
mov dword [ebp - 0x10], eax
jne 0x40421d
lea eax, [ebp - 0x130]
lea edi, [ebp - 0x10]
call fcn.004060b8
mov eax, edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040d022
pop ecx
pop ecx
call fcn.004060b8
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, esi
call fcn.0040cc34
lea eax, [ebp - 0x10]
lea edi, [ebp - 0x74]
call fcn.0040df72
test byte [ebx + 0x60], 2
je 0x40424f
cmp dword [ebp - 4], 0
jne 0x40424f
lea eax, [ebp - 0x1c]
push eax
mov eax, edi
call fcn.0040dff2
push ebx
call fcn.004048cf
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40425f
push 0x43e57c
call fcn.0040da46
cmp dword [ebp - 4], 0
jne 0x40427e
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
call fcn.004049b4
mov dword [ebp - 4], eax
lea edi, [ebp - 0x64]
call fcn.00406c51
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp - 4]
jmp 0x40413d