Function at 0x4042c0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x426a70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 1
push 0x427524
lea ecx, [esi + 0x2c]
call fcn.00402770
call fcn.0041d17c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x17], bl
call fcn.00402ac0
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
mov byte [esp + 0x40], 1
jb 0x40432c
mov eax, dword [eax + 4]
jmp 0x40432f
add eax, 4
lea ecx, [esi + 0xf0]
push ecx
push eax
mov ecx, esi
call fcn.00402cd0
cmp dword [esp + 0x34], edi
mov byte [esp + 0x40], bl
jb 0x404355
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041d08b
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
mov ebp, 0xf
lea edi, [esi + 0x144]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edi
mov byte [ecx + 4], bl
call fcn.00402570
mov ecx, esi
call fcn.00402450
cmp al, bl
jne 0x404394
push 2
push 0x427670
mov ecx, edi
call fcn.00402770
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edi
mov byte [ecx + 4], bl
call fcn.00402570
mov ecx, esi
call fcn.00402450
cmp al, bl
jne 0x404400
push 3
mov ecx, esi
call fcn.00403820
push edi
mov ecx, esi
call fcn.00402fe0
test al, al
je 0x4043d6
mov byte [esp + 0x13], 1
jmp 0x404394
push 6
mov ecx, esi
call fcn.00403820
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40455c
cmp byte [esp + 0x13], bl
je 0x4044c7
cmp dword [edi + 0x18], 0x10
jb 0x404415
mov eax, dword [edi + 4]
jmp 0x404418
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edi
mov byte [ecx + 4], bl
call fcn.00402570
mov ecx, esi
call fcn.00402c70
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00402ac0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x40], 2
jb 0x40445d
mov eax, dword [eax + 4]
jmp 0x404460
add eax, 4
lea ecx, [esi + 0xf0]
push ecx
push eax
mov ecx, esi
call fcn.00402cd0
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x40], bl
jb 0x404487
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041d08b
add esp, 4
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00402ac0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [esp + 0x4c], 3
call fcn.00402570
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x40], bl
jb 0x4044bb
mov eax, dword [esp + 0x20]
push eax
call fcn.0041d08b
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
push str.Updater.ini
mov ecx, esi
call fcn.004031c0
test al, al
je 0x404540
push str.start.exe
call fcn.004016e0
mov eax, dword [esi + 0x1a8]
add esp, 4
cmp eax, ebx
jne 0x404540
push ebx
push ebx
push ebx
push ebx
push esi
push 0x403dc0
call fcn.0041db16
mov edi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esi + 0x1a8], edi
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40452b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404566
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret