Function at 0x4094a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46320f
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.0045df39
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.00431230
mov edi, dword [ebp - 0x14]
test al, al
je 0x40997c
test edi, edi
je 0x40997c
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x409964
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409562
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409964
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 0x409964
test ecx, ecx
ja 0x409964
jb 0x40958f
cmp ebx, 0x6400000
ja 0x409964
push ebx
call fcn.0045e31a
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.00431390
test al, al
jne 0x4095d5
push esi
call fcn.0045e315
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00431420
jmp 0x40997c
lea ecx, [ebp - 0x14]
call fcn.00431420
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 0x409959
ja 0x409609
test eax, eax
je 0x409959
mov ecx, esi
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [str.DEADBEEFII]
jne 0x409637
mov eax, dword [ecx + 4]
cmp eax, dword [0x4704e0]
jne 0x409637
movzx eax, word [ecx + 8]
mov edi, str.DEADBEEFII
cmp ax, word [edi + 8]
mov edi, dword [ebp - 0x14]
je 0x409683
mov eax, dword [ecx]
cmp eax, dword [str.SERVDEADII]
jne 0x40965e
mov eax, dword [ecx + 4]
cmp eax, dword [0x4704ec]
jne 0x40965e
movzx eax, word [ecx + 8]
mov edi, str.SERVDEADII
cmp ax, word [edi + 8]
mov edi, dword [ebp - 0x14]
je 0x40967f
inc edx
inc ecx
mov eax, edx
mov dword [ebp - 0x64], edx
cdq
cmp edx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x64]
jb 0x409610
ja 0x409959
cmp eax, dword [ebp - 0x68]
jae 0x409959
jmp 0x409610
mov cl, 1
jmp 0x409686
mov cl, byte [ebp - 0x5d]
cmp edx, 0xffffffff
je 0x409959
lea eax, [edx + 0x1000]
cdq
cmp edx, dword [ebp - 0x5c]
ja 0x409959
jb 0x4096a9
cmp eax, ebx
ja 0x409959
test cl, cl
je 0x4096cc
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 0x40997e
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 0x409959
jb 0x4096f2
cmp eax, ebx
ja 0x409959
cmp ecx, 0x1000
jg 0x409959
lea esi, [ecx + 2]
push esi
call fcn.0045e31a
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.0045e315
push esi
call fcn.0045e315
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.00429b90
mov esi, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x20]
je 0x40987d
nop dword [eax + eax]
push esi
lea ecx, [ebp - 0x3c]
call fcn.00406900
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.00423f20
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 0x40981f
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 0x4097d4
mov ebx, dword [edi]
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x5c], edx
cmp edx, dword [ebp - 0x2c]
jne 0x4097fb
test edx, edx
je 0x4097f7
mov dx, word [ebx]
cmp dx, word [ecx]
jne 0x4097fb
add ebx, 2
add ecx, 2
sub dword [ebp - 0x5c], 1
jne 0x4097e3
mov cl, 1
jmp 0x4097fd
xor cl, cl
test cl, cl
jne 0x409808
add edi, 0x18
cmp edi, eax
jne 0x4097c0
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 0x4098c9
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x40985a
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409850
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40990e
push ecx
push edx
call fcn.0045e2e4
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 0x409790
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 0x409943
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409939
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409939
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 0x40991e
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409914
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409914
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0045e2e4
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 0x40987f
push edx
push ecx
call fcn.0045e2e4
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
jmp 0x40997e
push esi
call fcn.0045e315
add esp, 4
jmp 0x40997c
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x40997c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40997c
mov dword [edi], 0xffffffff
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4099b3
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x4099a1
test eax, eax
je 0x4099a1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push 4
push edi
call fcn.0045e2e4
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.0045df15
mov esp, ebp
pop ebp
ret 0xc