Function at 0x4139c0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4935e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov edi, 1
mov ecx, 0x4b994c
mov dword [esp + 0x10], edi
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push ebx
push esi
mov byte [esp + 0x34], 1
call fcn.004602c8
add esp, 8
test eax, eax
je 0x413a3d
mov dword [esp + 0x10], edi
jmp 0x413b79
push ebx
push 0x80
push 3
push ebx
push edi
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x413a95
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x1c]
cmp ebp, eax
je 0x413a95
push esi
push eax
push ebp
push str.IsItemDiffFromFile_File_Size__local:_d__server:_d__path:_ws
mov ecx, 0x4ba960
call fcn.0041d5c0
mov dword [esp + 0x20], 1
jmp 0x413b76
mov ebp, dword [esp + 0x34]
mov ecx, dword [ebp + 8]
add ebp, 8
cmp dword [ecx - 0xc], ebx
je 0x413b15
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00412cb0
add esp, 0xc
cmp eax, ebx
je 0x413b15
mov eax, dword [esp + 0x1c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x28]
movzx edx, ax
push edx
shr eax, 0x10
push eax
push str._d._d._d._d
lea edi, [esp + 0x2c]
call fcn.004039d0
mov edi, dword [esp + 0x2c]
add esp, 0x14
cmp dword [edi - 0xc], ebx
je 0x413b15
lea eax, [esp + 0x18]
push eax
mov eax, ebp
call fcn.00416c90
add esp, 4
test al, al
je 0x413b15
mov ecx, dword [ebp]
push esi
push ecx
push edi
push str.IsItemDiffFromFile_Version__local:_ws__server:_ws__path:_ws
jmp 0x413b6c
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], ebx
call fcn.004107f0
add esp, 8
cmp eax, ebx
je 0x413b79
mov eax, dword [esp + 0x20]
push eax
push 0x4a0f30
lea edi, [esp + 0x1c]
call fcn.004039d0
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
add edi, 0xc
push ecx
mov eax, edi
call fcn.00416c30
add esp, 0xc
test al, al
je 0x413b5e
mov dword [esp + 0x10], ebx
jmp 0x413b79
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
push esi
push edx
push eax
push str.IsItemDiffFromFile_CRC__local:_ws__server:_ws__path:_ws
mov ecx, 0x4ba960
call fcn.0041d5c0
add esp, 0x10
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413bc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x20
ret