Function at 0x4096f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46346f
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x483008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x14], 0
call fcn.0045e179
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 3
push 0
push 0x80000000
push esi
call fcn.00431470
mov edi, dword [ebp - 0x14]
test al, al
je 0x409bcc
test edi, edi
je 0x409bcc
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x409bb4
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4097b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409bb4
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
add ebx, esi
mov eax, ebx
adc ecx, 0
or eax, ecx
mov dword [ebp - 0x5c], ecx
je 0x409bb4
test ecx, ecx
ja 0x409bb4
jb 0x4097df
cmp ebx, 0x6400000
ja 0x409bb4
push ebx
call fcn.0045e55a
push ebx
mov esi, eax
push 0
push esi
mov dword [ebp - 0x74], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x14]
push eax
push ebx
push esi
call fcn.004315d0
test al, al
jne 0x409825
push esi
call fcn.0045e555
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00431660
jmp 0x409bcc
lea ecx, [ebp - 0x14]
call fcn.00431660
mov ecx, dword [ebp - 0x5c]
xor edx, edx
mov eax, ebx
mov byte [ebp - 0x5d], 0
add eax, 0xfffffff6
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], eax
adc ecx, 0xffffffff
mov dword [ebp - 0x18], ecx
test ecx, ecx
jb 0x409ba9
ja 0x409859
test eax, eax
je 0x409ba9
mov ecx, esi
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [str.DEADBEEFII]
jne 0x409887
mov eax, dword [ecx + 4]
cmp eax, dword [0x4704e0]
jne 0x409887
movzx eax, word [ecx + 8]
mov edi, str.DEADBEEFII
cmp ax, word [edi + 8]
mov edi, dword [ebp - 0x14]
je 0x4098d3
mov eax, dword [ecx]
cmp eax, dword [str.SERVDEADII]
jne 0x4098ae
mov eax, dword [ecx + 4]
cmp eax, dword [0x4704ec]
jne 0x4098ae
movzx eax, word [ecx + 8]
mov edi, str.SERVDEADII
cmp ax, word [edi + 8]
mov edi, dword [ebp - 0x14]
je 0x4098cf
inc edx
inc ecx
mov eax, edx
mov dword [ebp - 0x64], edx
cdq
cmp edx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x64]
jb 0x409860
ja 0x409ba9
cmp eax, dword [ebp - 0x68]
jae 0x409ba9
jmp 0x409860
mov cl, 1
jmp 0x4098d6
mov cl, byte [ebp - 0x5d]
cmp edx, 0xffffffff
je 0x409ba9
lea eax, [edx + 0x1000]
cdq
cmp edx, dword [ebp - 0x5c]
ja 0x409ba9
jb 0x4098f9
cmp eax, ebx
ja 0x409ba9
test cl, cl
je 0x40991c
mov ecx, dword [ebp - 0x6c]
push 0xf
push str.servicesdri.sys
call fcn.00405840
mov eax, dword [ebp - 0x70]
mov bl, 1
mov dword [eax], 2
jmp 0x409bce
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + esi + 0xc]
add eax, 0x12
mov dword [ebp - 0x18], eax
add eax, ecx
cdq
mov dword [ebp - 0x68], ecx
cmp edx, dword [ebp - 0x5c]
ja 0x409ba9
jb 0x409942
cmp eax, ebx
ja 0x409ba9
cmp ecx, 0x1000
jg 0x409ba9
lea esi, [ecx + 2]
push esi
call fcn.0045e55a
push esi
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x74]
add ecx, esi
push ecx
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x1c
lea ecx, [ebp - 0x58]
push ebx
call fcn.004056b0
mov byte [ebp - 4], 2
push ebx
call fcn.0045e555
push esi
call fcn.0045e555
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
push eax
mov edx, 0x7c
lea ecx, [ebp - 0x58]
call fcn.00429de0
mov esi, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x20]
je 0x409acd
nop dword [eax + eax]
push esi
lea ecx, [ebp - 0x3c]
call fcn.00406900
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.00424170
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x64], edx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
cmp ecx, eax
je 0x409a6f
mov edi, ecx
mov esi, edx
nop dword [eax]
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x3c]
mov ebx, edi
cmovae ecx, esi
cmp dword [edi + 0x14], 8
jb 0x409a24
mov ebx, dword [edi]
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x5c], edx
cmp edx, dword [ebp - 0x2c]
jne 0x409a4b
test edx, edx
je 0x409a47
mov dx, word [ebx]
cmp dx, word [ecx]
jne 0x409a4b
add ebx, 2
add ecx, 2
sub dword [ebp - 0x5c], 1
jne 0x409a33
mov cl, 1
jmp 0x409a4d
xor cl, cl
test cl, cl
jne 0x409a58
add edi, 0x18
cmp edi, eax
jne 0x409a10
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x5c], edi
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x14]
cmp ecx, eax
jne 0x409b19
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x409aaa
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409aa0
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b5e
push ecx
push edx
call fcn.0045e524
add esp, 8
add esi, 0x18
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x20]
jne 0x4099e0
xor bl, bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00405720
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x409b93
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409b89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409b89
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x3c]
push eax
call fcn.004055f0
mov eax, dword [ebp - 0x70]
mov dword [eax], 1
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x409b6e
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409b64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409b64
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0045e524
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov bl, 1
mov word [ebp - 0x3c], ax
jmp 0x409acf
push edx
push ecx
call fcn.0045e524
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
jmp 0x409bce
push esi
call fcn.0045e555
add esp, 4
jmp 0x409bcc
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x409bcc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x409bcc
mov dword [edi], 0xffffffff
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x409c03
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x409bf1
test eax, eax
je 0x409bf1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push 4
push edi
call fcn.0045e524
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045e155
mov esp, ebp
pop ebp
ret 0xc