Function at 0x458350
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0dce
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4e880c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x2a0], 0
mov dword [ebp - 0xb0], esi
jne 0x45864d
call dword [0x4e9bc4]
cmp dword [esi + 0x128], 0x10
mov dword [ebp - 0xb4], eax
jb 0x4583b0
mov edi, dword [esi + 0x114]
jmp 0x4583b6
lea edi, [esi + 0x114]
xor ebx, ebx
cmp edi, ebx
jne 0x4583c0
xor eax, eax
jmp 0x4583f1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x4583d8
xor eax, eax
jmp 0x4583f1
lea eax, [esi + esi]
call fcn.0048d9a0
mov ecx, dword [ebp - 0xb4]
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.00440d50
mov ecx, eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x8c], bx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x458407
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.0040244b
mov edi, dword [ebp - 0xb0]
cmp dword [edi + 0x80], 0x10
mov dword [ebp - 4], ebx
jb 0x45843a
mov edi, dword [edi + 0x6c]
jmp 0x45843d
add edi, 0x6c
cmp edi, ebx
jne 0x458445
xor eax, eax
jmp 0x458476
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x45845d
xor eax, eax
jmp 0x458476
lea eax, [esi + esi]
call fcn.0048d9a0
mov edx, dword [ebp - 0xb4]
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.00440d50
mov edi, 7
mov ecx, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], bx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x458490
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040244b
mov ecx, dword [ebp - 0x38]
mov esi, 8
cmp dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
jb 0x45850d
cmp ecx, ebx
mov eax, ecx
je 0x4584d8
cmp word [eax], bx
je 0x4584d8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4584d5
test al, 0x10
je 0x458512
mov ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x24], esi
jb 0x4584e6
push ecx
call fcn.0048c049
add esp, 4
cmp dword [ebp - 0x78], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], bx
jb 0x458820
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0048c049
add esp, 4
jmp 0x458820
lea eax, [ebp - 0x38]
jmp 0x4584c0
mov edi, 0xf
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], 0
xor eax, eax
cmp dword [ebp - 0x24], esi
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x74]
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 2
mov word [ebp - 0x20], bx
push edx
jae 0x458545
lea eax, [ebp - 0x38]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xb4], esp
push eax
call fcn.004042bd
call fcn.0040ae30
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x124]
mov esi, 0x10
add esp, 0x24
cmp dword [eax + 0x128], esi
jb 0x45857f
mov eax, dword [eax + 0x114]
jmp 0x458584
add eax, 0x114
push ecx
push eax
mov eax, dword [ebp - 0x60]
push eax
push ebx
lea ecx, [ebp - 0x74]
call fcn.00404429
test eax, eax
je 0x4585f3
cmp dword [ebp - 0x5c], esi
jb 0x4585a8
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0048c049
add esp, 4
mov esi, 8
cmp dword [ebp - 0x24], esi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], 0
jb 0x4585c8
mov edx, dword [ebp - 0x38]
push edx
call fcn.0048c049
add esp, 4
cmp dword [ebp - 0x78], esi
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], bx
jb 0x458820
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0048c049
add esp, 4
jmp 0x458820
mov eax, dword [ebp - 0x38]
mov esi, 8
cmp dword [ebp - 0x24], esi
jae 0x458603
lea eax, [ebp - 0x38]
push eax
call fcn.0047d040
add esp, 4
test eax, eax
jne 0x45863f
cmp dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x38]
jae 0x45861b
lea eax, [ebp - 0x38]
push eax
call fcn.0044c390
add esp, 4
lea ecx, [ebp - 0x74]
call fcn.00401f9e
lea ecx, [ebp - 0x3c]
call fcn.00402039
lea ecx, [ebp - 0x90]
jmp 0x45881b
lea ecx, [ebp - 0x90]
push ecx
call fcn.004117c0
jmp 0x458621
call fcn.00406ba0
test eax, eax
je 0x458820
call dword [0x4e9bc4]
cmp dword [esi + 0x80], 0x10
mov ebx, eax
jb 0x458670
mov edi, dword [esi + 0x6c]
jmp 0x458673
lea edi, [esi + 0x6c]
test edi, edi
jne 0x45867b
xor eax, eax
jmp 0x4586ac
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x458693
xor eax, eax
jmp 0x4586a6
lea eax, [esi + esi]
call fcn.0048d9a0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00440d50
mov esi, dword [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x58]
call fcn.004042bd
mov ecx, dword [ebp - 0x54]
mov edi, 8
cmp dword [ebp - 0x40], edi
mov dword [ebp - 4], 3
jb 0x458700
test ecx, ecx
mov eax, ecx
je 0x4586e9
xor ebx, ebx
cmp word [eax], bx
je 0x4586e9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4586e6
test al, 0x10
je 0x458705
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x40], edi
jb 0x458820
push ecx
call fcn.0048c049
add esp, 4
jmp 0x458820
lea eax, [ebp - 0x54]
jmp 0x4586cf
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0xa8], bl
xor eax, eax
cmp dword [ebp - 0x40], edi
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0xac]
push edx
push eax
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 4
mov word [ebp - 0x18], bx
jae 0x458742
lea eax, [ebp - 0x54]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xb4], esp
push eax
call fcn.004042bd
call fcn.0040ae30
add esi, 0x110
lea ecx, [ebp - 0xac]
push esi
push ecx
call fcn.00456af0
add esp, 0x2c
test al, al
je 0x45879c
push 0x4ce404
push 0x4cba1c
push 0x4cbd04
push 3
push str.CNewUpdateMgr::OnGetUpdatePackage
push 0x245
push str..NewUpdateNewUpdateMgr.cpp
call fcn.00418f50
add esp, 0x1c
jmp 0x45880d
cmp dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x54]
jae 0x4587a7
lea eax, [ebp - 0x54]
push eax
call fcn.0047d040
add esp, 4
test eax, eax
jne 0x4587f2
push str.peW__rT_h
push 0x4cba1c
push 0x4cbd04
push 3
push str.CNewUpdateMgr::OnGetUpdatePackage
push 0x24b
push str..NewUpdateNewUpdateMgr.cpp
call fcn.00418f50
mov eax, dword [ebp - 0x54]
add esp, 0x1c
cmp dword [ebp - 0x40], edi
jae 0x4587e7
lea eax, [ebp - 0x54]
push eax
call fcn.0044c390
add esp, 4
jmp 0x45880d
cmp dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x54]
jae 0x4587fd
lea eax, [ebp - 0x54]
push ebx
push ebx
push str.__install
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0xac]
call fcn.00401f9e
lea ecx, [ebp - 0x58]
call fcn.00402039
lea esp, [ebp - 0xc4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048c010
mov esp, ebp
pop ebp
ret