Function at 0x404402
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421a96
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1544
call fcn.0041fed0
mov eax, dword [0x42d004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push str.Russian
push ebx
call fcn.0040be92
mov edi, 0x208
lea eax, [ebp - 0x8ac]
push edi
push ebx
push eax
call fcn.0040a3f0
push edi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0040a3f0
add esp, 0x20
cmp dword [ebp + 8], 2
jge 0x404482
push 0x429ac0
call fcn.00401006
pop ecx
jmp 0x404951
push dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x8ac]
push eax
call esi
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
push 0x429b14
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4044dc
lea eax, [ebp - 0x21c]
push eax
push 0x429b40
call fcn.00401006
pop ecx
jmp 0x40447c
lea ecx, [ebp - 0x21c]
call fcn.00403bb0
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x21c]
call fcn.00403c6f
test al, al
jne 0x404506
push 0x429ba8
jmp 0x404477
lea eax, [ebp - 0x29c]
push eax
push 0x429c10
call fcn.00401006
push 0x429c50
call fcn.00401006
add esp, 0xc
lea ecx, [ebp - 0x5a4]
mov edx, str.Client._.update
call fcn.00403bf8
lea eax, [ebp - 0x151c]
push eax
lea eax, [ebp - 0x5a4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x404557
push 0x429c98
jmp 0x404477
lea edx, [ebp - 0x14f0]
lea ecx, [ebp - 0x5a4]
call fcn.00403bf8
push 0x100
lea eax, [ebp - 0x39c]
push ebx
push eax
call fcn.0040a3f0
add esp, 0xc
lea esi, [ebp - 0x14f0]
cmp word [ebp - 0x14f0], bx
push 5
pop edx
push 0x2e
pop ebx
je 0x4045ae
xor edi, edi
test edx, edx
je 0x4045ae
movzx eax, word [esi]
lea ecx, [edx - 1]
add esi, 2
cmp ax, bx
cmovne ecx, edx
mov edx, ecx
cmp word [esi], di
jne 0x404594
lea edi, [ebp - 0x39c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x6a4]
push 0x100
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push eax
call fcn.0040a3f0
add esp, 0xc
lea esi, [ebp - 0x14f0]
push 9
pop edx
cmp word [ebp - 0x14f0], di
je 0x4045fb
test edx, edx
je 0x4045fb
movzx eax, word [esi]
lea ecx, [edx - 1]
add esi, 2
cmp ax, bx
cmovne ecx, edx
mov edx, ecx
cmp word [esi], di
jne 0x4045e1
lea edi, [ebp - 0x6a4]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x39c]
push eax
movsd dword es:[edi], dword [esi]
push 0x429cd8
movsw word es:[edi], word [esi]
call fcn.00401006
add esp, 0xc
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x404642
push 0x429d30
jmp 0x404477
lea ecx, [ebp - 0x12cc]
call fcn.00406f0e
xor ebx, ebx
push 0x429d74
mov dword [ebp - 4], ebx
call fcn.00401006
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea eax, [ebp - 0x21c]
mov dword [esp], 0x104
push eax
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push eax
call esi
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.004097dd
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x21c]
call fcn.00403bb0
lea ecx, [ebp - 0x5a4]
call fcn.00403bb0
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x12cc]
push eax
lea eax, [ebp - 0x5a4]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10ac]
push str._s7z.exe_x__s__bso0__o_sPatch
push eax
call ebx
lea ecx, [ebp - 0x10ac]
call fcn.00403d3d
push 0x429de0
call fcn.00401006
push 0x429e04
call fcn.00401006
add esp, 0x24
lea ecx, [ebp - 0x5a4]
mov edx, str.Octodiff.zip
call fcn.00403bf8
lea ecx, [ebp - 0x5a4]
call fcn.00403bb0
push 0x104
lea eax, [ebp - 0x21c]
push eax
xor eax, eax
push eax
call edi
push eax
call esi
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.004097dd
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x21c]
call fcn.00403bb0
lea eax, [ebp - 0x12cc]
push eax
lea eax, [ebp - 0x5a4]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10ac]
push str._s7z.exe_x__s__bso0__o_sOctodiff
push eax
call ebx
lea ecx, [ebp - 0x10ac]
call fcn.00403d3d
push 0x429e94
call fcn.00401006
push 0x429ec0
call fcn.00401006
xor eax, eax
lea edi, [ebp - 0x10b8]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10b8], ecx
mov dword [ebp - 0x10b4], ecx
mov dword [ebp - 0x10b0], ecx
xor eax, eax
lea edi, [ebp - 0x10c4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10c4], ecx
mov dword [ebp - 0x10c0], ecx
mov dword [ebp - 0x10bc], ecx
lea eax, [ebp - 0x12cc]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x21c]
push 0x429ef4
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x12cc]
mov ecx, esp
push eax
call fcn.00404d99
lea eax, [ebp - 0x10c4]
push eax
lea edx, [ebp - 0x10b8]
lea ecx, [ebp - 0x21c]
call fcn.00403dc4
mov eax, dword [ebp - 0x10c0]
sub eax, dword [ebp - 0x10c4]
cdq
push 0x18
pop esi
idiv esi
push eax
mov eax, dword [ebp - 0x10b4]
sub eax, dword [ebp - 0x10b8]
cdq
idiv esi
push eax
push 0x429f08
call fcn.00401006
add esp, 0x1c
lea eax, [ebp - 0x10b8]
mov ecx, esp
push eax
call fcn.00404972
lea edx, [ebp - 0x12cc]
lea ecx, [ebp - 0x8ac]
call fcn.004040e8
add esp, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x8ac]
lea ecx, [ebp - 0x1554]
push eax
call fcn.004059d9
push ecx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x153c]
call fcn.004059d9
push 0x12
lea edx, [ebp - 0x1554]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x153c]
call fcn.00403b3f
pop ecx
lea ecx, [ebp - 0x153c]
call fcn.00404fcb
lea ecx, [ebp - 0x1554]
call fcn.00404fcb
lea ecx, [ebp - 0x10c4]
call fcn.00404f4b
lea ecx, [ebp - 0x10b8]
call fcn.00404f4b
push ecx
lea eax, [ebp - 0x12cc]
mov dword [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1554]
call fcn.004059d9
lea ecx, [ebp - 0x1554]
call fcn.00406e77
lea ecx, [ebp - 0x1554]
jmp 0x40494c
call fcn.00404fcb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040842b
leave
ret