Function at 0x427520
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b751c
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebp
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x427580
mov ecx, dword [esi + 0x1c]
xor ebp, ebp
cmp ecx, ebp
jne 0x4277ac
cmp dword [esi + 0x14], edi
je 0x4277ac
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x10], ebp
ja 0x427582
cmp eax, dword [esi + 0x14]
ja 0x427582
jmp 0x4277ac
xor ebp, ebp
lea edx, [esp + 0x24]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x2e]
mov ecx, dword [esp + 0x2a]
mov edx, dword [esp + 0x28]
and eax, 0xffff
push 0x5c
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x6c]
push str._04d__02d__02d
push eax
call fcn.004a6c24
mov cl, byte [esp + 0x2b]
add esp, 0x18
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
push ebp
call fcn.004061f0
lea edx, [esp + 0x5c]
lea eax, [esi + 4]
push edx
lea ecx, [esp + 0x50]
push eax
push ecx
mov dword [esp + 0x278], ebp
call fcn.0041f940
lea edx, [esp + 0x48]
mov byte [esp + 0x278], 1
push edx
push eax
call fcn.00427830
add esp, 0x14
lea ecx, [esp + 0x4c]
test eax, eax
push 1
mov byte [esp + 0x270], 0
sete bl
call fcn.004061f0
test bl, bl
pop ebx
je 0x42763a
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x26c], edi
call fcn.004061f0
xor eax, eax
jmp 0x4277b1
mov eax, dword [esp + 0x32]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2e]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x30]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x16c]
push str._02d__02d__02d__03d
push ecx
call fcn.004a6c24
mov dl, byte [esp + 0x27]
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
push ebp
call fcn.004061f0
lea eax, [esp + 0x15c]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
mov byte [esp + 0x274], 2
call fcn.0041f940
lea ecx, [esp + 0x20]
mov byte [esp + 0x274], 3
push ecx
push eax
call fcn.00427ac0
mov edi, eax
mov eax, dword [esp + 0x60]
add esp, 0x14
cmp eax, ebp
je 0x4276e7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4276de
cmp al, 0xff
je 0x4276de
dec al
mov byte [ecx], al
jmp 0x4276e7
push ecx
call fcn.004a5c41
add esp, 4
cmp edi, 0xffffffff
jne 0x427746
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x427710
mov al, byte [ecx - 1]
test al, al
je 0x427706
cmp al, 0xff
je 0x427706
dec al
mov byte [ecx - 1], al
jmp 0x427710
dec ecx
push ecx
call fcn.004a5c41
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], ebp
cmp ecx, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
je 0x427742
mov al, byte [ecx - 1]
test al, al
je 0x427738
cmp al, 0xff
je 0x427738
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x4277b1
dec ecx
push ecx
call fcn.004a5c41
add esp, 4
xor eax, eax
jmp 0x4277b1
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x427755
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x18], edi
cmp ecx, ebp
je 0x42777c
mov al, byte [ecx - 1]
test al, al
je 0x427772
cmp al, 0xff
je 0x427772
dec al
mov byte [ecx - 1], al
jmp 0x42777c
dec ecx
push ecx
call fcn.004a5c41
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], ebp
cmp ecx, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
je 0x4277ac
mov al, byte [ecx - 1]
test al, al
je 0x4277a2
cmp al, 0xff
je 0x4277a2
dec al
mov byte [ecx - 1], al
jmp 0x4277ac
dec ecx
push ecx
call fcn.004a5c41
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x260
ret