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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4736ba
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f8]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov al, byte [ebp + 0x14]
mov byte [esp + 0x1c], al
mov eax, dword [ecx]
lea edx, [esp + 0x24]
push edx
call dword [eax + 0x1c]
push eax
mov ecx, edi
call fcn.00408650
lea ecx, [esp + 0x24]
call fcn.00408690
test ebx, ebx
je 0x4461cb
push ebx
mov ecx, edi
call fcn.00408710
mov ebx, dword [esp + 0x18]
push dword [esp + 0x14]
mov ecx, dword [ebx]
push str.deployVersionedFile__S
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004087a0
add esp, 0xc
lea eax, [esp + 0x24]
push dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
push dword [esp + 0x1c]
push eax
call fcn.004457cb
push eax
mov ecx, esi
call fcn.00408650
lea ecx, [esp + 0x24]
call fcn.00408690
cmp dword [esi + 0x14], 8
jb 0x44621b
mov eax, dword [esi]
jmp 0x44621d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x446264
cmp dword [esi + 0x14], 8
jb 0x446230
mov esi, dword [esi]
push esi
lea eax, [esp + 0x40]
push str.File_doesnt_exist:__s
push eax
call fcn.0042fa5d
add esp, 0xc
and dword [esp + 0x280], 0
push eax
lea ecx, [esp + 0x28]
call fcn.00401250
push 0x48e968
lea eax, [esp + 0x28]
push eax
call fcn.00454ac3
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x280], 1
cmp dword [esi + 0x14], 8
jb 0x446283
mov eax, dword [esi]
jmp 0x446285
mov eax, esi
push eax
lea eax, [esp + 0x40]
push str.Failed_to_open__S
push eax
call fcn.0042fa5d
add esp, 0xc
mov dword [esp + 0x10], eax
mov byte [esp + 0x280], 2
cmp dword [esi + 0x14], 8
jb 0x4462ae
mov eax, dword [esi]
jmp 0x4462b0
mov eax, esi
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4462d5
call fcn.0042d054
mov ebx, eax
jmp 0x4462d9
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x4462e5
mov eax, dword [eax]
mov edx, eax
mov ecx, ebx
call fcn.0042d96a
lea ecx, [esp + 0x3c]
mov byte [esp + 0x280], 1
call fcn.00404060
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x446343
cmp dword [esi + 0x14], 8
jb 0x44631d
mov eax, dword [esi]
jmp 0x44631f
mov eax, esi
push dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
mov ecx, dword [ecx]
push dword [esp + 0x2c]
mov eax, dword [ecx]
push str.File_size_is__d_for__S_from__S
call dword [eax + 0xc]
push eax
call fcn.004087a0
add esp, 0x14
jmp 0x44638a
lea ecx, [esp + 0x10]
call fcn.0042d9e8
mov byte [esp + 0x280], 3
cmp dword [esi + 0x14], 8
mov edx, dword [eax]
jb 0x446360
mov eax, dword [esi]
jmp 0x446362
mov eax, esi
push dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
mov ecx, dword [ecx]
push eax
mov eax, dword [ecx]
push str.Failed_to_get_file_size_for__S:__S_from__S
call dword [eax + 0xc]
push eax
call fcn.004087a0
add esp, 0x14
lea ecx, [esp + 0x10]
call fcn.00410c00
or dword [esp + 0x280], 0xffffffff
test ebx, ebx
je 0x44639d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp byte [ebp + 0x20], 0
je 0x4463fc
cmp dword [esi + 0x14], 8
jb 0x4463b6
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x58]
call fcn.0044768a
mov dword [esp + 0x280], 4
cmp dword [edi + 0x14], 8
mov byte [esp + 0x58], 1
jb 0x4463d8
mov edi, dword [edi]
push ecx
push edi
lea ecx, [esp + 0x5c]
call fcn.0044780a
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], vtable.CUnzipper.0
call fcn.004477c0
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0044f834
mov esp, ebp
pop ebp
ret 0x1c