Function at 0x415090
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ff918
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x7c], ebx
jne 0x415203
push ebx
push 0x80
push 4
push ebx
push 5
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
je 0x415340
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4151f3
cmp dword [esp + 0x28], ebx
jl 0x4151f3
mov eax, dword [esp + 0x24]
jg 0x41511b
cmp eax, ebx
jbe 0x4151f3
inc eax
push 0x54cfe0
push eax
call fcn.004cc21d
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x4151f3
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x20]
push ecx
push edx
push ebp
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4151ea
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
mov byte [eax + ebp], bl
call fcn.00417860
lea edx, [esp + 0x44]
push 0x548888
push edx
mov ecx, ebp
mov dword [esp + 0x78], ebx
call fcn.00476848
add esp, 8
test eax, eax
je 0x41519b
push str.Decrypt_Faild
call fcn.00401f50
mov edx, 0x515e64
mov ecx, eax
call fcn.00401fd0
add esp, 4
jmp 0x4151dd
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
je 0x4151dd
mov byte [esp + 0x7c], bl
lea ebx, [esp + 0x7c]
lea edi, [esp + 0x44]
call fcn.00417a60
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x50]
jne 0x4151c5
call fcn.004cb4f7
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 0x30]
mov eax, dword [esp + 0x50]
mov edx, dword [edx + 0x10]
add ecx, 0x30
push eax
call edx
mov dword [esp + 0x18], eax
lea esi, [esp + 0x44]
call fcn.00417930
mov esi, dword [esp + 0x20]
push ebp
call fcn.004cc1ec
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
jmp 0x4152e0
lea eax, [esp + 0x44]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4152de
mov eax, dword [esp + 0x60]
cmp eax, ebx
mov ecx, dword [esp + 0x64]
jl 0x4152de
jg 0x415232
cmp ecx, ebx
jbe 0x4152de
cmp eax, ebx
jg 0x4152de
jl 0x415248
cmp ecx, 0x100000
ja 0x4152de
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x7c]
mov eax, esi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x1c], ebx
call fcn.0040fae0
mov edi, dword [esp + 0x7c]
cmp edi, ebx
je 0x415340
cmp dword [esp + 0x1c], ebx
je 0x415340
lea ecx, [esp + 0x2c]
push ecx
call fcn.00417860
push 1
push ecx
mov dword [esp + 0x78], 1
mov edx, esp
mov dword [esp + 0x84], esp
push edx
mov ecx, edi
call fcn.00417170
lea ebx, [esp + 0x4c]
call fcn.0047328b
add esp, 8
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x74], 2
call fcn.00417960
mov esi, ebx
mov byte [esp + 0x70], 1
call fcn.00417930
push edi
call fcn.004cc1ec
mov eax, dword [esp + 0x40]
add esp, 4
sub eax, dword [esp + 0x38]
jne 0x4152f6
lea esi, [esp + 0x2c]
call fcn.00417930
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
lea ebx, [esp + 0x7c]
lea edi, [esp + 0x2c]
mov byte [esp + 0x7c], 0
call fcn.00417a60
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
jne 0x415317
call fcn.004cb4f7
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [edx + 0x10]
add ecx, 0x30
push eax
call edx
test eax, eax
je 0x415337
mov dword [esp + 0x18], 1
lea esi, [esp + 0x2c]
call fcn.00417930
mov eax, dword [esp + 0x18]
jmp 0x4152e0