Function at 0x1005b050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016f90f
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x101d7c7c]
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, dword [ebp + 8]
mov bl, 1
cmp dword [esi + 0x14], 0
je 0x1005b4f0
cmp dword [esi + 0x2c], 0
je 0x1005b4f0
lea eax, [esi + 0x80]
push eax
lea eax, [esi + 0x98]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.100591a0
mov edi, dword [ebp - 0x220]
add esp, 0xc
test edi, edi
je 0x1005b3bc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10112750
add esp, 0xc
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
test edi, edi
je 0x1005b104
lea eax, [edi + edi]
push eax
push ecx
lea eax, [ebp - 0x218]
push eax
call fcn.10113460
add esp, 0xc
cmp dword [esi + 0xc4], 8
lea eax, [esi + 0xb0]
jb 0x1005b115
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x21c]
test eax, eax
setne bh
cmp edx, 8
jb 0x1005b175
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005b16b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b51d
push edx
push ecx
call fcn.100acb1e
add esp, 8
test bh, bh
je 0x1005b3fc
push 0xb
xor eax, eax
mov dword [ebp - 0x220], 0
push str.exsoftexist
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.10012940
add esi, 0x100
mov dword [ebp - 4], 0
push esi
lea eax, [ebp - 0x248]
push str.ex_ary_mate_
push eax
call fcn.10055150
add esp, 0xc
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.1000e0d0
push str.eden_bro
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.1000e0d0
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x268], esp
mov dword [eax + 0x24], 0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push 0
cmovae eax, dword [ebp - 0x248]
push eax
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.100349e0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10030e40
mov edx, dword [ebp - 0x26c]
or edi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005b277
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x264]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005b298
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000cdc0
mov ecx, eax
test ecx, ecx
je 0x1005b522
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 5
jb 0x1005b2c1
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x264]
push str.ex_ary_mate__s
push eax
call fcn.1000b130
add esp, 0xc
lea ecx, [ebp - 0x268]
push str.quit_2
call fcn.1000e0d0
push str.eden_bro
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 6
call fcn.1000e0d0
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x270], esp
mov dword [eax + 0x24], 0
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x268]
push 0
push esi
push eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 8
push eax
call fcn.100349e0
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.10030e40
mov edx, dword [ebp - 0x26c]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005b35a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x268]
mov eax, edi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005b37b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.SoftInstaller::ParseSoftInfoTask__continue:_reg_exist.
call fcn.1004d370
add esp, 4
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1005b3a1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x248]
call fcn.100109e0
lea ecx, [ebp - 0x230]
call fcn.100109e0
jmp 0x1005b4fd
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1005b3fc
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005b3f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b52c
push edx
push ecx
call fcn.100acb1e
add esp, 8
push esi
call fcn.10058840
add esp, 4
test al, al
jne 0x1005b4ec
push str.quit_5
lea ecx, [ebp - 0x264]
call fcn.1000e0d0
push str.eden_bro
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 9
call fcn.1000e0d0
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x270], esp
mov dword [eax + 0x24], 0
lea eax, [esi + 0x100]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x260]
push str.ex_ary_mate_
push eax
call fcn.10055150
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xc
jb 0x1005b473
mov eax, dword [eax]
push 0
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.100349e0
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.10030e40
lea ecx, [ebp - 0x260]
call fcn.100109e0
mov edx, dword [ebp - 0x268]
or edi, 0xffffffff
mov byte [ebp - 4], 9
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005b4c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1005b4e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.SoftInstaller::ParseSoftInfoTask__continue:_CheckConfigSoftUninstallDate_is_false.
jmp 0x1005b4f5
xor bl, bl
jmp 0x1005b4fd
push str.SoftInstaller::ParseSoftInfoTask__continue:_bad_config.
call fcn.1004d370
add esp, 4
mov al, bl
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.100acb08
mov esp, ebp
pop ebp
ret 4
call fcn.1012fb57
push 0x80004005
call fcn.1000ae00
call fcn.1012fb57
int3