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

Disassembly:
sub esp, 0x60
mov eax, dword [0x1001803c]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
mov esi, edx
push edi
push esi
mov dword [esp + 0x2c], eax
call fcn.100020b0
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x1000444a
mov ecx, dword [0x1001a0dc]
xor eax, eax
test ecx, ecx
jbe 0x10004427
mov edx, dword [0x1001a0cc]
lea esp, [esp]
cmp dword [edx + eax*4], ebp
je 0x1000424f
inc eax
cmp eax, ecx
jb 0x10004240
jmp 0x10004427
lea ebx, [eax + 1]
mov dword [esp + 0x24], ebx
test ebx, ebx
jbe 0x10004427
test byte [esp + 0x7c], 1
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
je 0x1000427e
mov byte [esp + 0x12], 1
mov eax, str.Packed
jmp 0x100043c4
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push esi
call ebp
mov edi, 0x800
cmp eax, 0x800
ja 0x10004297
mov edi, eax
push edi
call fcn.1000667a
add esp, 4
push 0
push 0
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100042be
mov dword [esp + 0x14], 0
jmp 0x100042eb
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100042d8
mov dword [esp + 0x14], eax
jmp 0x100042eb
mov edi, dword [esp + 0x18]
mov edx, ebx
call fcn.100059a0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
push 0
push esi
call ebp
mov edx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.10003f30
add esp, 8
test eax, eax
jbe 0x10004312
mov byte [esp + 0x12], 1
jmp 0x1000439c
push 0
push esi
add edi, 0xfffff800
call ebp
sub eax, edi
mov ebx, 0x800
cmp eax, 0x800
ja 0x1000432d
mov ebx, eax
push ebx
call fcn.1000667a
add esp, 4
push 0
push 0
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000434d
xor ebp, ebp
jmp 0x10004374
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10004365
xor ebp, ebp
jmp 0x10004374
mov edi, dword [esp + 0x1c]
mov edx, ebp
call fcn.100059a0
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push edx
push ebp
call fcn.10003ed0
add esp, 8
test al, al
je 0x10004393
mov byte [esp + 0x13], 1
push ebp
call fcn.10006605
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call fcn.10006605
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x10004414
cmp byte [esp + 0x13], 0
je 0x10004423
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, 0x10016490
push ebx
push eax
push str.New_Heur._s__d_
mov ecx, 0x40
lea edi, [esp + 0x38]
call fcn.100010c0
add esp, 0xc
cmp byte [esp + 0x12], 0
je 0x100043e8
cmp ebx, 0xe
je 0x10004427
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x78]
push 2
push 5
push ecx
lea ebx, [esp + 0x38]
call fcn.10002380
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100065f6
add esp, 0x60
ret
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, str.Packed
jmp 0x100043c4
mov ebp, dword [esp + 0x20]
mov ecx, dword [0x1001a0bc]
xor eax, eax
test ecx, ecx
jbe 0x1000444a
mov edx, dword [0x1001a0d4]
lea esp, [esp]
cmp dword [edx + eax*4], ebp
je 0x1000445f
inc eax
cmp eax, ecx
jb 0x10004440
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100065f6
add esp, 0x60
ret
add eax, 1
je 0x1000444a
push eax
push str.New_Heur.Icon__d_
mov ecx, 0x40
lea edi, [esp + 0x34]
call fcn.100010c0
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x80]
push 2
push 5
push edx
mov ebx, edi
call fcn.10002380
mov ecx, dword [esp + 0x80]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100065f6
add esp, 0x60
ret