Function at 0x415260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50493e
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 1
push 0x64
push 0x50d2e0
push str.SoftwareSNBKOFFICE
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_accept
push eax
mov dword [ebp - 0x4c], 1
call fcn.00401db0
add esp, 0x18
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
je 0x41547c
lea eax, [ebp - 0x28]
push 0x10
push eax
call fcn.004014d0
add esp, 8
push 1
push 0x531760
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004023c0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.004023c0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41544c
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x41544c
cmp dword [ebp - 0x14], 0x10
mov ecx, eax
mov edx, dword [esi + 0x14]
cmovae ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edx
cmp edi, edx
ja 0x41539a
mov dword [ebp - 0x44], esi
mov eax, esi
cmp edx, 0x10
jb 0x415380
mov eax, dword [esi]
mov dword [ebp - 0x44], eax
push edi
push ecx
push eax
mov dword [esi + 0x10], edi
call fcn.004d7f40
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov byte [eax + edi], 0
jmp 0x41544c
cmp edi, 0x7fffffff
ja 0x4154cb
mov ecx, edi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x4153ba
mov ecx, closesocket
jmp 0x4153de
mov eax, edx
shr eax, 1
mov dword [ebp - 0x44], eax
mov eax, closesocket
sub eax, dword [ebp - 0x44]
cmp edx, eax
jbe 0x4153d4
mov ecx, closesocket
jmp 0x4153de
mov eax, dword [ebp - 0x44]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x44], ecx
push eax
mov ecx, esi
call fcn.00402fe0
push edi
push dword [ebp - 0x50]
mov ecx, eax
mov dword [esi + 0x10], edi
mov eax, dword [ebp - 0x44]
push ecx
mov dword [ebp - 0x48], ecx
mov dword [esi + 0x14], eax
call fcn.004d7f40
mov ecx, dword [ebp - 0x48]
add esp, 0xc
mov eax, dword [ebp - 0x54]
mov byte [ecx + edi], 0
cmp eax, 0x10
jb 0x41544a
lea ecx, [eax + 1]
mov eax, dword [esi]
cmp ecx, 0x1000
jb 0x415439
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4154d0
mov eax, edx
push ecx
push eax
call fcn.004d634e
mov eax, dword [ebp - 0x48]
add esp, 8
mov dword [esi], eax
jmp 0x41544c
mov dword [esi], ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x41547c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415472
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4154d0
push ecx
push edx
call fcn.004d634e
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x4154ac
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4154a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4154d5
push ecx
push edx
call fcn.004d634e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d635c
mov esp, ebp
pop ebp
ret 4
call fcn.00403040
call fcn.004dc07f
call fcn.004dc07f
int3