Function at 0x412790
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517de8
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 0x4129f2
mov eax, dword [edi + 0x594]
cmp eax, esi
je 0x4127ef
mov ecx, dword [0x589084]
push 1
push eax
call fcn.0040e7f0
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.004113c0
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 0x412831
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040b380
jmp 0x41283b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x412897
call fcn.0040b2d0
cmp eax, esi
jge 0x41289a
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x412860
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 0x412a32
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 0x4128d8
call fcn.0040b2d0
cmp eax, esi
jge 0x4128d5
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x4128cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
jmp 0x412a2a
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.0040dc20
push esi
push esi
push esi
lea ecx, [ebp - 0x20]
call fcn.0040bac0
test eax, eax
jns 0x412929
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x412915
push eax
call fcn.004eb17a
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040ce70
mov dword [ebp - 4], ebx
jmp 0x412a2a
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
push ebx
push esi
lea ecx, [ebp - 0x20]
call fcn.0040ba30
test eax, eax
js 0x412a06
push ebx
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00411cf0
add esp, 0xc
mov ebx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [edi + 0x54]
call fcn.004113c0
mov byte [ebp - 4], 8
mov ebx, dword [ebx]
push ebx
mov ecx, eax
call fcn.00408180
test eax, eax
sete bl
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.00406ef0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00406ef0
test bl, bl
je 0x412a06
lea edx, [ebp - 0x10]
push edx
lea ecx, [edi + 0x6d0]
call fcn.00412570
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x5ec]
mov dword [ebp - 0x18], ebx
call fcn.0040b660
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 0x634]
mov dword [ebp - 0x18], ebx
call fcn.0040b660
mov byte [ebp - 4], 2
test esi, esi
je 0x4129d7
push esi
call fcn.004eb17a
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040ce70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406ef0
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 0x412a17
push esi
call fcn.004eb17a
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040ce70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406ef0
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