Function at 0x4185c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaf0d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5383c4]
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 edi, dword [ebp + 8]
test edi, edi
jne 0x4185f9
xor al, al
jmp 0x418894
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], reloc.WS2_32.dll_accept
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp dword [edi + 0xd0], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], 0
je 0x4186eb
cmp dword [edi + 0xd4], 0x10
lea eax, [edi + 0xc0]
jb 0x418644
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.004166f0
add esp, 0xc
test al, al
je 0x4186eb
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x30]
call ebx
mov esi, eax
test esi, esi
je 0x4186af
cmp dword [ebp - 0x30], reloc.WS2_32.dll_accept
jne 0x4186af
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
call fcn.00402880
test al, al
je 0x4186da
test esi, esi
je 0x4186da
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ecx
push 0x20119
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x30]
call ebx
mov esi, eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41885c
cmp dword [edi + 0xe8], 0
je 0x4187b0
cmp dword [edi + 0xec], 0x10
lea eax, [edi + 0xd8]
jb 0x418709
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.004166f0
add esp, 0xc
test al, al
je 0x4187b0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x30]
call ebx
mov esi, eax
test esi, esi
je 0x418774
cmp dword [ebp - 0x30], reloc.WS2_32.dll_accept
jne 0x418774
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
call fcn.00402880
test al, al
je 0x41879f
test esi, esi
je 0x41879f
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ecx
push 0x20119
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x30]
call ebx
mov esi, eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41885c
cmp dword [edi + 0x190], 0
je 0x4187d9
cmp dword [edi + 0x194], 0x10
lea eax, [edi + 0x180]
jb 0x4187ca
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41885c
cmp dword [edi + 0x1a8], 0
lea esi, [edi + 0x198]
je 0x41881a
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4187f2
mov eax, dword [esi]
push eax
push 0
call fcn.004188c0
add esp, 8
test al, al
jne 0x41885c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41880b
mov eax, dword [esi]
push eax
push 0x19
call fcn.004188c0
add esp, 8
test al, al
jne 0x41885c
cmp dword [edi + 0x1c0], 0
je 0x41883c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41882d
mov eax, dword [esi]
push eax
push 0x1a
call fcn.004188c0
add esp, 8
test al, al
jne 0x41885c
cmp dword [edi + 0x1d8], 0
je 0x418860
cmp dword [esi + 0x14], 0x10
jb 0x41884d
mov esi, dword [esi]
push esi
push 0x1c
call fcn.004188c0
add esp, 8
test al, al
je 0x418860
mov bl, 1
jmp 0x418862
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x418892
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418888
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4188b0
push ecx
push edx
call fcn.004bec6b
add esp, 8
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.004bebdd
mov esp, ebp
pop ebp
ret
call fcn.004c8fd6
int3