Function at 0x4124b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517be8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp dword [edi + 8], esi
je 0x412712
mov eax, dword [edi + 0x594]
cmp eax, esi
je 0x41250f
mov ecx, dword [0x589084]
push 1
push eax
call fcn.0040e530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
lea ecx, [edi + 0x6d0]
push eax
call fcn.004110e0
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
push esi
push 0x80
push 3
push esi
push 3
push 0xc0000000
cmp ecx, esi
je 0x412551
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040b3a0
jmp 0x41255b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x4125b7
call fcn.0040b2f0
cmp eax, esi
jge 0x4125ba
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x412580
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x412752
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x4125f8
call fcn.0040b2f0
cmp eax, esi
jge 0x4125f5
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x4125ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
jmp 0x41274a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 6
push ebx
push eax
lea ecx, [ebp - 0x38]
call fcn.0040d960
push esi
push esi
push esi
lea ecx, [ebp - 0x20]
call fcn.0040b920
test eax, eax
jns 0x412649
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x412635
push eax
call fcn.004eaf4a
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044f630
mov dword [ebp - 4], ebx
jmp 0x41274a
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
push ebx
push esi
lea ecx, [ebp - 0x20]
call fcn.0040b890
test eax, eax
js 0x412726
push ebx
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00411a10
add esp, 0xc
mov ebx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [edi + 0x54]
call fcn.004110e0
mov byte [ebp - 4], 8
mov ebx, dword [ebx]
push ebx
mov ecx, eax
call fcn.00408270
test eax, eax
sete bl
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.004064c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.004064c0
test bl, bl
je 0x412726
lea edx, [ebp - 0x10]
push edx
lea ecx, [edi + 0x6d0]
call fcn.00412290
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x5ec]
mov dword [ebp - 0x18], ebx
call fcn.00416dd0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 0x634]
mov dword [ebp - 0x18], ebx
call fcn.00416dd0
mov byte [ebp - 4], 2
test esi, esi
je 0x4126f7
push esi
call fcn.004eaf4a
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044f630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004064c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 2
test esi, esi
je 0x412737
push esi
call fcn.004eaf4a
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044f630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004064c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret