Function at 0x4059d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bb627
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x698
mov eax, dword [0x4fc518]
push ebp
push esi
push edi
push 0x4c65a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x6a4], eax
mov dword [esp + 0x38], 0
call fcn.00401930
mov edi, 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x6ac], edi
call fcn.0040cbc0
mov eax, dword [0x4ff1cc]
mov ecx, 0x4ff1cc
mov byte [esp + 0x6ac], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edx, dword [0x4ff1cc]
mov ecx, 0x4ff1cc
mov byte [esp + 0x6ac], 3
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x1c]
push str.File_d
push eax
mov byte [esp + 0x6b8], 4
call fcn.00402b50
mov edx, dword [esp + 0x24]
mov eax, dword [0x4fdaa4]
lea ecx, [esp + 0x28]
push ecx
push edx
push 0x4c6e10
push eax
call fcn.00410010
mov edx, dword [0x4ff1cc]
add esp, 0x1c
mov ecx, 0x4ff1cc
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6b8]
mov edx, dword [ecx]
push eax
push edx
lea eax, [esp + 0x28]
push str._s:_s
push eax
mov byte [esp + 0x6bc], 5
call fcn.00402b50
mov ebp, dword [esp + 0x30]
add esp, 0x10
push ebp
lea ecx, [esp + 0x28]
call fcn.0040ce70
test eax, eax
je 0x405d92
mov edx, dword [0x4ff1cc]
push ebx
mov ecx, 0x4ff1cc
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x4c684c
push 0x83d
lea ecx, [esp + 0x18]
mov byte [esp + 0x6b4], 6
call fcn.00402b00
lea eax, [esp + 0x294]
push eax
push 0x104
call dword [0x4c60f0]
test eax, eax
je 0x405d4d
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040cf20
mov ebx, eax
test ebx, ebx
je 0x405ce9
mov edi, edi
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.0049f30b
add esp, 8
test eax, eax
je 0x405b7f
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040cbf0
mov ebx, eax
test ebx, ebx
jne 0x405b50
jmp 0x405ce9
push 0
lea edx, [esp + 0x298]
push edx
lea ecx, [esp + 0x30]
call fcn.0040d1a0
test eax, eax
je 0x405d31
mov eax, dword [0x4ff1cc]
mov ecx, 0x4ff1cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], edi
mov byte [esp + 0x6b0], 7
jle 0x405bd0
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004013f0
mov eax, dword [esp + 0x18]
push eax
lea edx, [esp + 0x298]
push edx
lea eax, [esp + 0x38]
push str._s_s
push eax
call fcn.00402b50
mov esi, dword [esp + 0x40]
push 0x4c6e0c
push esi
call fcn.0049faba
mov edi, eax
add esp, 0x18
test edi, edi
je 0x405ca2
push edi
lea ecx, [esp + 0x4a0]
push 0x104
push ecx
call fcn.0049f9de
add esp, 0xc
test eax, eax
je 0x405c82
lea edx, [esp + 0x49c]
push edx
lea ecx, [esp + 0x14]
call fcn.004018f0
mov eax, dword [esp + 0x10]
push 0xa
push eax
call fcn.0049f8ad
add esp, 8
test eax, eax
je 0x405c97
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, 0xffffffff
jle 0x405c97
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405340
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b4], 8
call fcn.00401d70
lea ecx, [esp + 0x34]
call fcn.00401780
push edi
call fcn.0049f98d
add esp, 4
jmp 0x405cb7
push esi
push str.Failed_to_read_version_from_file___s__r_n_r_n
push 2
push 0x4fda60
call fcn.00404320
add esp, 0x10
push edi
call fcn.0049f98d
add esp, 4
jmp 0x405cb7
push esi
push str.Failed_to_open_file___s__r_n_r_n
push 2
push 0x4fda60
call fcn.00404320
add esp, 0x10
push esi
call dword [0x4c60ec]
lea eax, [esi - 0x10]
mov byte [esp + 0x6b0], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405ce0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, 1
test ebx, ebx
jne 0x405d61
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], edi
jle 0x405d19
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004013f0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], edi
jle 0x405d19
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.004013f0
mov eax, dword [esp + 0x18]
push ebp
push eax
push str.Failed_to_find_file___s__in_archive___s__r_n_r_n
push 2
push 0x4fda60
call fcn.00404320
add esp, 0x14
jmp 0x405d61
push ebp
lea eax, [esp + 0x40]
push eax
push str.Failed_to_extract___s__from_archive___s__r_n_r_n
push 2
push 0x4fda60
call fcn.00404320
add esp, 0x14
jmp 0x405ce5
push str.Failed_to_get_temp_path_r_n_r_n
push 2
push 0x4fda60
call fcn.00404320
add esp, 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x6b0], 5
mov dword [esp + 0x14], 0x4c684c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebx
jg 0x405da7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x405da7
push ebp
push str.Failed_to_open_archive___s__r_n_r_n
push 2
push 0x4fda60
call fcn.00404320
add esp, 0x10
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00401c80
mov esi, dword [esp + 0x6b8]
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x34], edi
mov byte [esp + 0x6ac], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405de9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x6ac], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6ac], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x6ac], 1
call fcn.0040ce40
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x6ac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x6a4]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x698]
pop ebp
call fcn.0049e7e5
add esp, 0x6a4
ret