Function at 0x10023d60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da188
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x10114894]
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 dword [ebp - 0x830], 0
call fcn.10031630
mov edi, eax
push edi
mov ecx, dword [edi]
call dword [ecx]
mov esi, eax
test esi, esi
je 0x10023e67
mov dword [ebp - 4], 0
call fcn.10007800
mov ecx, eax
test ecx, ecx
je 0x10024077
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x830], 1
mov dword [ebp - 0x82c], eax
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x10023de4
jmp dword [eax*4 + 0x10024088]
push 0x10
push 0x100e6588
jmp 0x10023e0d
push 0x10
push 0x100e65ac
jmp 0x10023e0d
push 0x11
push 0x100e65d0
jmp 0x10023e0d
push 0x1a
push str._rN_f
lea ecx, [ebp - 0x82c]
call fcn.100070c0
mov esi, dword [ebp - 0x82c]
push 0
push esi
push 0
call fcn.1002d320
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10023e47
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 1
push 0
push str.install_init_fail
call fcn.10023af0
mov ecx, eax
call fcn.10053140
xor eax, eax
jmp 0x1002405b
mov eax, dword [edi]
push str.DLL_7Z
push 0xcb
push dword [0x10117a38]
push edi
call dword [eax + 4]
test eax, eax
jne 0x10023ead
push eax
push str.7z.dll_
push eax
call fcn.1002d320
push 0
push 0
push 1
push 0
push str.install_init_fail
call fcn.10023af0
mov ecx, eax
call fcn.10053140
xor eax, eax
jmp 0x1002405b
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.10066cd0
mov eax, dword [edi]
lea ecx, [ebp - 0x810]
add esp, 0xc
push ecx
push str.DLL_NETLIB
push 0xcc
push dword [0x10117a38]
push edi
call dword [eax + 8]
test eax, eax
jne 0x10023f09
call fcn.100246a0
push 0
push 0
push 1
push 0
push str.install_init_fail
call fcn.10023af0
mov ecx, eax
call fcn.10053140
xor eax, eax
jmp 0x1002405b
call fcn.10023a70
mov ebx, eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023f62
cmp dword [ebx], 0
jne 0x10023f62
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x10023f62
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [ebx]
mov dword [ebx + 4], eax
call esi
mov dword [ebx + 8], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x10023f62
call eax
mov dword [ebx + 0xc], eax
call fcn.100239e0
mov ecx, eax
call fcn.1001e5a0
mov ecx, dword [edi]
mov esi, eax
push esi
push edi
call dword [ecx + 0x50]
test esi, esi
je 0x10024056
call fcn.100239e0
mov ecx, eax
call fcn.1001d2b0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10006bd0
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x82c], edi
push 0x100e66dc
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 1
call fcn.10022260
push ecx
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
mov esi, esp
push eax
mov dword [ebp - 0x830], esi
call fcn.10006bd0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x828]
push eax
call fcn.1002ee50
mov edx, dword [ebp - 0x814]
add esp, 8
mov byte [ebp - 4], 1
mov esi, eax
cmp edx, 0x10
jb 0x10024022
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10024018
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10024081
push edx
push ecx
call fcn.1005e6c9
add esp, 8
test esi, esi
jne 0x1002404b
push esi
push esi
push 1
push esi
push 0x100e66e0
call fcn.10023af0
mov ecx, eax
call fcn.10053140
lea ecx, [ebp - 0x82c]
call fcn.10007410
xor eax, eax
jmp 0x1002405b
lea ecx, [ebp - 0x82c]
call fcn.10007410
mov eax, 1
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.1005e6b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10005050
call fcn.100818f3
nop
jmp 0x100240c7
aad 0
add byte [ebx + 0x670c68f0], cl
push cs
adc byte [eax - 0x29], ch
add byte [eax], al
add bh, bh
xor eax, 0x10117a38
mov ecx, dword [esi]
push esi
call dword [ecx + 0x10]
test eax, eax
jne 0x1002413d
push 4
push 0x100e662c
push eax
call fcn.1002d320
cmp eax, 6
jne 0x10024111
push 1
push 0
push 0
push dword [0x10113288]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 1
push 0
push str.install_init_fail
call fcn.10023af0
mov ecx, eax
call fcn.10053140
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [0x10113298]
lea ecx, [ebp - 0x10]
call fcn.10008a60
mov edx, dword [str.greenpomelo_dll.prj]
mov dword [ebp - 4], 0
test edx, edx
jne 0x10024160
xor ecx, ecx
jmp 0x10024174
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10024165
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.100070c0
push dword [ebp - 0x10]
mov eax, dword [esi]
push str.SETUPCONFIG
push 0xd5
push dword [0x10117a38]
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x100241e3
push 4
push 0x100e662c
push eax
call fcn.1002d320
cmp eax, 6
jne 0x100241c6
push 1
push 0
push 0
push dword [0x10113288]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 1
push 0
push str.install_init_fail
call fcn.10023af0
mov ecx, eax
call fcn.10053140
xor esi, esi
jmp 0x100241e8
mov esi, 1
mov edi, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1002420a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret