Function at 0x4024e0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x417a8c
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 0x402540
mov ecx, dword [esi + 0x1c]
xor ebp, ebp
cmp ecx, ebp
jne 0x40276c
cmp dword [esi + 0x14], edi
je 0x40276c
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 0x402542
cmp eax, dword [esi + 0x14]
ja 0x402542
jmp 0x40276c
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.0040bed5
mov cl, byte [esp + 0x2b]
add esp, 0x18
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
push ebp
call fcn.00402ff0
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.004034b0
lea edx, [esp + 0x48]
mov byte [esp + 0x278], 1
push edx
push eax
call fcn.004027f0
add esp, 0x14
lea ecx, [esp + 0x4c]
test eax, eax
push 1
mov byte [esp + 0x270], 0
sete bl
call fcn.00402ff0
test bl, bl
pop ebx
je 0x4025fa
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x26c], edi
call fcn.00402ff0
xor eax, eax
jmp 0x402771
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.0040bed5
mov dl, byte [esp + 0x27]
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
push ebp
call fcn.00402ff0
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.004034b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x274], 3
push ecx
push eax
call fcn.00402a80
mov edi, eax
mov eax, dword [esp + 0x60]
add esp, 0x14
cmp eax, ebp
je 0x4026a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40269e
cmp al, 0xff
je 0x40269e
dec al
mov byte [ecx], al
jmp 0x4026a7
push ecx
call fcn.0040afd2
add esp, 4
cmp edi, 0xffffffff
jne 0x402706
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x4026d0
mov al, byte [ecx - 1]
test al, al
je 0x4026c6
cmp al, 0xff
je 0x4026c6
dec al
mov byte [ecx - 1], al
jmp 0x4026d0
dec ecx
push ecx
call fcn.0040afd2
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 0x402702
mov al, byte [ecx - 1]
test al, al
je 0x4026f8
cmp al, 0xff
je 0x4026f8
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x402771
dec ecx
push ecx
call fcn.0040afd2
add esp, 4
xor eax, eax
jmp 0x402771
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x402715
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x18], edi
cmp ecx, ebp
je 0x40273c
mov al, byte [ecx - 1]
test al, al
je 0x402732
cmp al, 0xff
je 0x402732
dec al
mov byte [ecx - 1], al
jmp 0x40273c
dec ecx
push ecx
call fcn.0040afd2
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 0x40276c
mov al, byte [ecx - 1]
test al, al
je 0x402762
cmp al, 0xff
je 0x402762
dec al
mov byte [ecx - 1], al
jmp 0x40276c
dec ecx
push ecx
call fcn.0040afd2
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