Function at 0x40a410
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e82fe
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5363c0]
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 0x4ed6b8
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.00401d90
add esp, 0x18
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
je 0x40a62c
lea eax, [ebp - 0x28]
push 0x10
push eax
call fcn.004014b0
add esp, 8
push 1
push 0x5113e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402420
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.00402420
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 0x40a5fc
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x40a5fc
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 0x40a54a
mov dword [ebp - 0x44], esi
mov eax, esi
cmp edx, 0x10
jb 0x40a530
mov eax, dword [esi]
mov dword [ebp - 0x44], eax
push edi
push ecx
push eax
mov dword [esi + 0x10], edi
call fcn.004bd4d0
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov byte [eax + edi], 0
jmp 0x40a5fc
cmp edi, 0x7fffffff
ja 0x40a67b
mov ecx, edi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x40a56a
mov ecx, accept
jmp 0x40a58e
mov eax, edx
shr eax, 1
mov dword [ebp - 0x44], eax
mov eax, accept
sub eax, dword [ebp - 0x44]
cmp edx, eax
jbe 0x40a584
mov ecx, accept
jmp 0x40a58e
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.00402f80
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.004bd4d0
mov ecx, dword [ebp - 0x48]
add esp, 0xc
mov eax, dword [ebp - 0x54]
mov byte [ecx + edi], 0
cmp eax, 0x10
jb 0x40a5fa
lea ecx, [eax + 1]
mov eax, dword [esi]
cmp ecx, 0x1000
jb 0x40a5e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a680
mov eax, edx
push ecx
push eax
call fcn.004bb95e
mov eax, dword [ebp - 0x48]
add esp, 8
mov dword [esi], eax
jmp 0x40a5fc
mov dword [esi], ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40a62c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a622
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a680
push ecx
push edx
call fcn.004bb95e
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40a65c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a652
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a685
push ecx
push edx
call fcn.004bb95e
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.004bb96c
mov esp, ebp
pop ebp
ret 4
call fcn.00402fe0
call fcn.004c15cf
call fcn.004c15cf
int3