Function at 0x40a770
Capabilities:
Access peb ldr_data
Check if file exists
Create directory
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x434458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x28]
push str.update
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x2c], 1
call fcn.00428855
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov bl, 2
push edx
mov byte [esp + 0x24], bl
call edi
test eax, eax
jne 0x40a7cc
push eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 4]
call fcn.004286f9
lea edx, [esp + 0xc]
push str.unzip.exe
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00428855
push eax
lea ecx, [esi + 8]
mov byte [esp + 0x24], 3
call fcn.004286f9
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.004285c0
lea ecx, [esp + 0xc]
push str.Updater.exe
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00428855
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0x24], 4
call fcn.004286f9
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.004285c0
lea eax, [esp + 0xc]
push str.updater_update.ini
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00428855
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0x24], 5
call fcn.004286f9
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.004285c0
lea edx, [esp + 0xc]
push str.update.ini
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00428855
push eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x24], 6
call fcn.004286f9
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.004285c0
lea ecx, [esp + 0xc]
push 0x443538
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00428855
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x2c], 7
call fcn.004287ef
push eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0x24], 8
call fcn.004286f9
mov byte [esp + 0x20], 7
lea ecx, [esp + 0x10]
call fcn.004285c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.004285c0
lea eax, [esp + 0xc]
push str._tempfile
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00428855
push eax
lea ecx, [esi + 0x40]
mov byte [esp + 0x24], 9
call fcn.004286f9
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.004285c0
lea edx, [esp + 0x2c]
lea ecx, [esi + 0x48]
push edx
call fcn.004286f9
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004287ef
push eax
lea ecx, [esi + 0x4c]
mov byte [esp + 0x24], 0xa
call fcn.004286f9
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.004285c0
mov eax, dword [esp + 0x30]
mov ecx, esi
mov dword [esi + 0x60], eax
call fcn.0040a9d0
lea ecx, [esp + 0xc]
push str.unzip.exe
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.00428855
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x30]
mov dword [esi + 0x28], eax
call fcn.004285c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.004285c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call fcn.004285c0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.004285c0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc