Function at 0x44683f
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f28f
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x493350]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push esi
mov eax, dword [0x493350]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov ecx, dword [ebx]
mov esi, edx
lea edx, [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
push edx
mov dword [esp + 0x20], esi
call dword [eax + 0x1c]
and dword [esp + 0x298], 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00407540
or dword [esp + 0x298], 0xffffffff
lea esi, [esp + 0x20]
call fcn.00406e40
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4468dc
push dword [esp + 0x1c]
call fcn.00406ea0
push dword [esp + 0x14]
mov ecx, dword [ebx]
mov eax, dword [ecx]
push str.deployVersionedFile__S
call dword [eax + 0xc]
mov esi, eax
call fcn.00406fa0
mov edx, dword [esp + 0x1c]
pop ecx
pop ecx
push dword [ebp + 0x14]
lea eax, [esp + 0x24]
push dword [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00445e84
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x2a0], 1
call fcn.00407540
or dword [esp + 0x298], 0xffffffff
lea esi, [esp + 0x20]
call fcn.00406e40
cmp dword [edi + 0x18], 8
jb 0x446944
lea esi, [edi + 4]
mov eax, dword [esi]
mov dword [esp + 0xc], esi
jmp 0x44694d
lea eax, [edi + 4]
mov dword [esp + 0xc], eax
mov esi, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x446996
cmp dword [edi + 0x18], 8
jb 0x446960
mov esi, dword [esi]
push esi
push str.File_doesnt_exist:__s
lea esi, [esp + 0x28]
call fcn.004318ef
pop ecx
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x2a0], 2
call fcn.00401340
push 0x486be4
lea eax, [esp + 0x48]
push eax
call fcn.00450dab
and dword [esp + 0x10], 0
mov dword [esp + 0x298], 3
cmp dword [edi + 0x18], 8
jb 0x4469ae
mov esi, dword [esi]
push esi
push str.Failed_to_open__S
lea esi, [esp + 0x28]
call fcn.004318ef
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0xc]
mov byte [esp + 0x298], 4
cmp dword [edi + 0x18], 8
jb 0x4469d9
mov eax, dword [esi]
jmp 0x4469dd
mov eax, dword [esp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x446a04
call fcn.0042e95b
mov ecx, eax
jmp 0x446a0a
mov dword [esp + 0x10], eax
xor ecx, ecx
mov eax, dword [esp + 0x18]
call fcn.0042f9c6
lea ecx, [esp + 0x20]
mov byte [esp + 0x298], 3
call fcn.00406d50
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x446a64
cmp dword [edi + 0x18], 8
jb 0x446a41
mov eax, dword [esi]
jmp 0x446a43
mov eax, esi
push dword [esp + 0x14]
mov ecx, dword [ebx]
push eax
push dword [esp + 0x44]
mov eax, dword [ecx]
push str.File_size_is__d_for__S_from__S
call dword [eax + 0xc]
mov esi, eax
call fcn.00406fa0
add esp, 0x10
jmp 0x446aaa
lea eax, [esp + 0x18]
push eax
call fcn.0042fa0c
pop ecx
mov byte [esp + 0x298], 5
cmp dword [edi + 0x18], 8
mov eax, dword [eax]
jb 0x446a83
mov edx, dword [esi]
jmp 0x446a85
mov edx, esi
push dword [esp + 0x14]
mov ecx, dword [ebx]
push eax
mov eax, dword [ecx]
push edx
push str.Failed_to_get_file_size_for__S:__S_from__S
call dword [eax + 0xc]
mov esi, eax
call fcn.00406fa0
add esp, 0x10
lea eax, [esp + 0x18]
call fcn.0040c440
or dword [esp + 0x298], 0xffffffff
cmp dword [esp + 0x10], 0
je 0x446ac3
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp byte [ebp + 0x18], 0
je 0x446b21
cmp dword [edi + 0x18], 8
mov eax, dword [esp + 0xc]
jb 0x446adc
mov eax, dword [eax]
push eax
lea ebx, [esp + 0x70]
call fcn.00447b98
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x298], 6
cmp dword [eax + 0x18], 8
mov byte [esp + 0x70], 1
jb 0x446b05
mov eax, dword [eax + 4]
jmp 0x446b08
add eax, 4
push eax
lea esi, [esp + 0x70]
call fcn.00447d1e
or dword [esp + 0x298], 0xffffffff
mov ecx, esi
call fcn.00447cc5
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.0044cced
mov esp, ebp
pop ebp
ret 0x14