Function at 0x419c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430641
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x43c0d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
test eax, eax
je 0x41a0ab
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41a0ab
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [edi + 0x39d], 0
jne 0x419d7a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x419d72
mov ecx, dword [ebp + 0x14]
mov edx, eax
mov dword [ebp - 0x1c], 0
sub ecx, 1
je 0x419d34
sub ecx, 1
je 0x419d2d
sub ecx, 1
jne 0x419d34
mov ecx, 2
neg edx
jmp 0x419d36
mov ecx, 1
jmp 0x419d36
xor ecx, ecx
push ecx
lea eax, [ebp - 0x1c]
push eax
push edx
push dword [edi + 0x398]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x419d5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x419d72
push str.PE::ReadBytes
push 0x854
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
jmp 0x41a0b7
lea edx, [edi + 0x3e8]
jmp 0x419dc2
mov eax, dword [edi + 0x3e8]
lea edx, [edi + 0x3e8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], edx
test eax, eax
je 0x419dbd
cmp eax, 2
jne 0x419da2
mov eax, dword [ebp - 0x30]
add eax, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x419dc5
cmp eax, 1
jne 0x419dae
mov ecx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x419dc5
cmp eax, 3
jne 0x419dc5
mov eax, dword [edi + 0x58]
sub eax, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x419dc5
mov ecx, dword [ebp + 0x10]
mov dword [edx], ecx
mov dword [ebp - 0x20], edx
cmp byte [edi + 0x39d], 0
je 0x41a02f
mov ecx, dword [edi + 0x390]
add ecx, dword [edx]
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [edi + 0x3ec]
add ecx, dword [edx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x43e230]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x43d7e4]
cmp eax, dword [ecx + 4]
jg 0x41a0db
jmp 0x419e0d
mov edx, dword [ebp - 0x20]
cmp dword [ebp + 0x14], 0
jne 0x419ed0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push 0x40
push esi
push dword [edx]
call fcn.0041eb00
cmp byte [edi + 0x3f6], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
je 0x419e61
push esi
push eax
push dword [ebp - 0x2c]
call fcn.00423cb0
add esp, 0xc
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
push esi
push dword [eax]
call fcn.0041eb00
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x419eb1
lea edx, [ebp - 0x14]
mov ecx, 0x43d788
push edx
push esi
push dword [ebp - 0x2c]
push eax
push dword [edi + 0x398]
call fcn.004060f0
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
push dword [ebp + 0xc]
push dword [eax]
call fcn.0041eb00
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x419eae
push str.PE::ReadBytes
push 0x88c
push eax
mov ecx, edi
jmp 0x41a0b7
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp - 0x14]
je 0x41a022
push str.PE::ReadBytes
push 0x890
push 0x80006
mov ecx, edi
jmp 0x41a0b7
mov eax, dword [edi + 0x3ec]
xor ecx, ecx
cdq
cmp ecx, edx
mov ecx, dword [ebp - 0x24]
jb 0x419f6e
ja 0x419eee
cmp ecx, eax
jb 0x419f6e
mov eax, dword [edi + 0x58]
add eax, dword [edi + 0x3ec]
cmp ecx, eax
ja 0x419f6e
push esi
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call fcn.00423cb0
add esp, 0xc
mov dword [ebp - 0x14], esi
cmp byte [edi + 0x39d], 0
jne 0x41a06f
cmp dword [ebp + 0x10], 0
je 0x41a07f
cmp byte [ebp + 0x18], 0
jne 0x41a07f
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x30]
push dword [edi + 0x398]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x419f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41a07f
push str.PE::ReadBytes
push 0x8d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
jmp 0x41a0b7
lea eax, [ebp - 0x28]
push eax
push 0x40
push esi
push ecx
mov ecx, edi
call fcn.0041eb00
cmp byte [edi + 0x3f6], 0
je 0x419fb2
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call fcn.00423cb0
add esp, 0xc
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push dword [ebp - 0x28]
push esi
push dword [ebp - 0x24]
call fcn.0041eb00
jmp 0x41a007
lea eax, [ebp - 0x14]
mov ecx, 0x43d788
push eax
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push dword [edi + 0x398]
call fcn.004060f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov ecx, edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call fcn.0041eb00
test esi, esi
jne 0x41a004
push str.PE::ReadBytes
push 0x8ab
push dword [ebp - 0x34]
mov ecx, edi
jmp 0x41a0b7
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp - 0x14]
je 0x41a022
push str.PE::ReadBytes
push 0x8af
push 0x80006
mov ecx, edi
jmp 0x41a0b7
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x419f0d
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x2c]
push dword [edi + 0x398]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a096
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a096
cmp esi, dword [ebp - 0x18]
je 0x419f0d
push str.PE::ReadBytes
push 0x8c3
push 0x80006
mov ecx, edi
jmp 0x41a0b7
cmp byte [ebp + 0x18], 0
mov eax, dword [ebp - 0x20]
jne 0x41a082
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x41a082
mov eax, dword [ebp - 0x20]
cmp byte [edi + 4], 0
je 0x41a08a
add dword [eax], esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
jmp 0x41a0be
push str.PE::ReadBytes
push 0x8bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
jmp 0x41a0b7
push str.PE::ReadBytes
push 0x837
push 0x57
call fcn.0041b4b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042264a
mov esp, ebp
pop ebp
ret 0x14
push 0x43d7e4
call fcn.00422334
add esp, 4
cmp dword [0x43d7e4], 0xffffffff
jne 0x419e0a
push 0x5c
push 0
push 0x43d788
mov dword [ebp - 4], 0
call fcn.00424230
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
add esp, 0xc
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x54], xmm0
push 8
push 0x4326dc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401a60
push 0
push 0
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x38], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
push 0x11
push str.ReadProcessMemory
mov byte [ebp - 4], 3
call fcn.00401a60
sub esp, 0x18
mov byte [ebp - 4], 4
mov eax, esp
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.00421410
add esp, 8
mov byte [ebp - 4], 2
mov ecx, 0x43d788
call fcn.00412ed0
lea ecx, [ebp - 0x54]
call fcn.00405aa0
push 0x4316f0
call fcn.00422635
push 0x43d7e4
mov dword [ebp - 4], 0xffffffff
call fcn.004222e3
add esp, 8
jmp 0x419e0a