Function at 0x414500
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce568
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x52de08]
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 0x414762
mov eax, dword [edi + 0x54c]
cmp eax, esi
je 0x41455f
mov ecx, dword [0x52f50c]
push 1
push eax
call fcn.0040f120
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 + 0x688]
push eax
call fcn.004122b0
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 0x4145a1
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040b710
jmp 0x4145ab
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x414607
call fcn.0040b660
cmp eax, esi
jge 0x41460a
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x4145d0
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 0x4147a2
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 0x414648
call fcn.0040b660
cmp eax, esi
jge 0x414645
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x41463d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
jmp 0x41479a
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.0040e200
push esi
push esi
push esi
lea ecx, [ebp - 0x20]
call fcn.0040bf50
test eax, eax
jns 0x414699
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x414685
push eax
call fcn.004aaaaa
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044fe30
mov dword [ebp - 4], ebx
jmp 0x41479a
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
push ebx
push esi
lea ecx, [ebp - 0x20]
call fcn.0040bec0
test eax, eax
js 0x414776
push ebx
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00412da0
add esp, 0xc
mov ebx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [edi + 0x54]
call fcn.004122b0
mov byte [ebp - 4], 8
mov ebx, dword [ebx]
push ebx
mov ecx, eax
call fcn.00408280
test eax, eax
sete bl
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.00406650
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00406650
test bl, bl
je 0x414776
lea edx, [ebp - 0x10]
push edx
lea ecx, [edi + 0x688]
call fcn.00414190
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x5a4]
mov dword [ebp - 0x18], ebx
call fcn.0040bb20
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 0x5ec]
mov dword [ebp - 0x18], ebx
call fcn.0040bb20
mov byte [ebp - 4], 2
test esi, esi
je 0x414747
push esi
call fcn.004aaaaa
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044fe30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406650
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 0x414787
push esi
call fcn.004aaaaa
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044fe30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406650
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