Function at 0x402b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452fcb
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x46b554]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 5
push 1
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x402df3
cmp eax, 0xffffffff
je 0x402df3
xor eax, eax
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x34], al
mov dword [ebp - 4], eax
lea ecx, [ecx]
lea ecx, [eax + 0x1000]
mov edi, eax
lea esi, [ebp - 0x34]
cmp ecx, eax
ja 0x402c19
or eax, 0xffffffff
call fcn.00404fd0
jmp 0x402c22
mov ebx, ecx
sub ebx, eax
call fcn.00404d60
mov eax, dword [ebp - 0x34]
mov ebx, 0x10
cmp dword [ebp - 0x20], ebx
jae 0x402c32
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x54]
push 0
lea ecx, [ebp - 0x5c]
push ecx
push 0x1000
add eax, edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c7c
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x402c7c
mov eax, dword [ebp - 0x24]
add ecx, edi
lea esi, [ebp - 0x34]
cmp ecx, eax
ja 0x402c6e
or eax, 0xffffffff
call fcn.00404fd0
mov eax, dword [ebp - 0x24]
jmp 0x402c00
mov ebx, ecx
sub ebx, eax
call fcn.00404d60
mov eax, dword [ebp - 0x24]
jmp 0x402c00
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0x34]
cmp edi, eax
ja 0x402c92
or eax, 0xffffffff
mov ecx, edi
call fcn.00404fd0
jmp 0x402ca0
mov ebx, edi
sub ebx, eax
call fcn.00404d60
mov ebx, 0x10
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xf
xor esi, esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.004028c0
add esp, 0xc
test al, al
mov eax, dword [ebp - 0x70]
jne 0x402d25
cmp eax, esi
je 0x402cf0
push eax
call fcn.0042f9a7
add esp, 4
cmp dword [ebp - 0x3c], ebx
jb 0x402d01
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0042f9a7
add esp, 4
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x50], 0
cmp dword [ebp - 0x20], ebx
jb 0x402df3
mov edx, dword [ebp - 0x34]
push edx
call fcn.0042f9a7
add esp, 4
jmp 0x402df3
cmp eax, dword [ebp - 0x6c]
je 0x402d39
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x50]
call fcn.00406cb0
test al, al
jne 0x402d4f
mov ecx, dword [ebp - 0x60]
push ecx
push str.Signature_failure_in_file__S
call fcn.0040ba70
add esp, 8
jmp 0x402ddb
mov ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x3c], ebx
jae 0x402d5a
lea ecx, [ebp - 0x50]
call fcn.00402f00
mov edi, eax
cmp edi, esi
jl 0x402ddb
mov eax, dword [0x46d77c]
mov esi, dword [eax + 8]
sub esi, dword [eax + 0xc]
mov ebx, eax
sar esi, 4
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], esi
push 0x54
mov byte [ebp - 4], 4
call fcn.0042fcc4
add esp, 4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x402da3
mov edx, dword [ebp - 0x60]
push edi
push edx
push eax
call fcn.004022c0
mov edi, eax
jmp 0x402da5
xor edi, edi
mov ecx, esi
mov eax, ebx
call fcn.0040f5e0
lea esi, [ebp - 0x70]
call fcn.004046f0
lea esi, [ebp - 0x50]
call fcn.004043f0
lea esi, [ebp - 0x34]
call fcn.004043f0
mov eax, edi
jmp 0x402df5
lea esi, [ebp - 0x70]
call fcn.004046f0
lea esi, [ebp - 0x50]
call fcn.004043f0
lea esi, [ebp - 0x34]
call fcn.004043f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042f9b2
mov esp, ebp
pop ebp
ret