Function at 0x442e20
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x48b0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
cmp byte [esi + 0x35], 0
mov dword [esp + 0x20], 0
je 0x442e5f
push esi
call fcn.004430e0
lea ecx, [esi + 0x1c]
mov dword [esp + 0x30], ecx
call fcn.00443e40
lea ebp, [esi + 4]
mov ecx, ebp
call fcn.00410ab0
push 0x4992cc
xor ebx, ebx
mov eax, esi
call fcn.00415d80
xor edx, edx
cmp edi, edx
mov byte [esi + 0x34], dl
mov byte [esi + 0x35], dl
jne 0x442e93
xor eax, eax
jmp 0x442eaf
mov eax, edi
lea ebx, [eax + 2]
jmp 0x442ea0
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x442ea0
sub eax, ebx
sar eax, 1
mov ebx, eax
push edi
mov eax, esi
call fcn.00415d80
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x18], ebx
push esi
push 0x80
push 3
push esi
push 7
push SysReAllocStringLen
push edi
mov dword [esp + 0x70], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x442fea
call fcn.004164a0
cmp eax, esi
jl 0x44309f
mov eax, dword [esp + 0x5c]
cmp byte [eax], 0
jne 0x443094
lea ecx, [esp + 0x28]
push ecx
push ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x442f29
call fcn.004164a0
test eax, eax
jl 0x442f33
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x28], edx
push esi
call fcn.00460f82
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
mov byte [esp + 0x54], 1
je 0x4430c3
mov eax, dword [esp + 0x5c]
cmp byte [eax], 0
jne 0x4430c3
mov ecx, edi
lea edx, [esp + 0x18]
call fcn.00434ae0
test ebx, ebx
je 0x442f7e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x18]
mov edx, dword [0x4bb38c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4bb38c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edx, esi
mov eax, edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 2
call fcn.004420c0
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x38]
call fcn.004421a0
test eax, eax
je 0x443073
lea ecx, [ecx]
mov edx, dword [esp + 0x5c]
cmp byte [edx], 0
jne 0x443073
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x1c]
push 0
push eax
push ecx
mov ecx, ebp
call fcn.00411800
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x442ff5
mov dword [ecx], eax
jmp 0x442ff8
mov dword [esp + 0x18], eax
mov ebx, eax
jmp 0x442ef2
mov dword [ebp], eax
lea ebx, [esp + 0x1c]
mov dword [ebp + 4], eax
mov dword [esp + 0x24], eax
call fcn.00421af0
mov edi, eax
call fcn.00421b70
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x443055
test eax, eax
jl 0x4430b9
cmp word [ecx], 0x5b
jne 0x443055
test eax, eax
jle 0x443055
push 0x5d
push ecx
call fcn.0046acda
add esp, 8
test eax, eax
je 0x443055
sub eax, dword [esp + 0x1c]
sar eax, 1
cmp eax, 0xffffffff
je 0x443055
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x24]
push edx
call fcn.00443df0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
call fcn.004421a0
test eax, eax
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
jne 0x442fc0
mov edx, dword [esp + 0x5c]
xor ecx, ecx
cmp byte [edx], cl
sete cl
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
call fcn.00416ba0
push edi
call fcn.00469050
add esp, 4
test ebx, ebx
je 0x44309f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
push 0x80070057
call fcn.00416be0
push edi
call fcn.00469050
add esp, 4
test ebx, ebx
je 0x4430d7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4430a3