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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf869
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x515e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov dword [ebp - 4], 0
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov dword [ebp - 0x14], 1
cmp dword [eax - 0xc], 0
je 0x419538
mov ecx, 0x4d1b0c
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4194c6
test dx, dx
je 0x4194c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4194c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4194a0
xor eax, eax
jmp 0x4194cb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x419538
lea eax, [ebp - 0x20]
push eax
call fcn.00418d20
mov ecx, dword [eax]
xor eax, eax
add esp, 4
test ecx, ecx
setne al
mov dword [ebp - 0x14], 3
test eax, eax
jne 0x4194fe
push 0x80004005
call fcn.00403080
mov eax, dword [esi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419526
test dx, dx
je 0x419522
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419526
add eax, 4
add ecx, 4
test dx, dx
jne 0x419500
xor eax, eax
jmp 0x41952b
sbb eax, eax
or eax, 1
test eax, eax
sete al
mov byte [ebp - 0xe], 0
test al, al
je 0x41953c
mov byte [ebp - 0xe], 1
mov eax, dword [ebp - 0x14]
or ebx, 0xffffffff
test al, 2
je 0x419568
mov edx, dword [ebp - 0x20]
and eax, 0xfffffffd
add edx, 0xfffffff0
mov dword [ebp - 0x14], eax
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419568
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xe], 0
je 0x41960c
lea eax, [ebp - 0x18]
push eax
call fcn.00418d20
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [eax]
mov esi, dword [edi]
lea edx, [ecx - 0x10]
sub esi, 0x10
cmp edx, esi
je 0x4195d6
cmp dword [esi + 0xc], 0
jl 0x4195cb
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4195cb
push edx
call fcn.00404f90
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4195c4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [edi], eax
jmp 0x4195d6
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00408ed0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x419881
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x419643
lea eax, [ebp - 0x18]
push eax
call fcn.00418d20
add esp, 4
mov dword [ebp - 4], 2
jmp 0x419585
lea ecx, [ebp - 0x2c]
push ecx
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41969c
lea eax, [ebp - 0x18]
push eax
call fcn.00418d20
add esp, 4
mov dword [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00402610
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x419878
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x419878
cmp dword [ebp - 0x28], 0
je 0x4196b7
lea eax, [ebp - 0x18]
push eax
call fcn.00418d20
add esp, 4
mov dword [ebp - 4], 4
jmp 0x41966d
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x419878
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.0041f370
mov esi, dword [ebp - 0x38]
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x24], 0
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41986b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0xd]
push eax
push esi
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x1c], 0
call fcn.00448460
mov eax, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
jle 0x41974a
add eax, esi
push eax
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.004199a0
mov esi, dword [ebp - 0x38]
cmp byte [ebp - 0xf], 0
mov edi, dword [ebp - 0x34]
je 0x419774
mov ecx, esi
cmp esi, edi
je 0x419774
lea esp, [esp]
mov dl, byte [ecx]
mov bl, byte [ecx + 1]
mov byte [ecx + 1], dl
mov byte [ecx], bl
add ecx, 2
cmp ecx, edi
jne 0x419760
or ebx, 0xffffffff
sub edi, esi
cmp byte [esi + edi - 1], 0
je 0x4197b8
call fcn.00419a90
test al, al
jne 0x41978c
inc dword [0x517280]
inc edi
push edi
lea ecx, [ebp - 0x38]
call fcn.0041f370
mov esi, dword [ebp - 0x38]
mov byte [esi + edi - 1], 0
cmp byte [ebp - 0xd], 0
je 0x419811
inc edi
push edi
lea ecx, [ebp - 0x38]
call fcn.0041f370
mov esi, dword [ebp - 0x38]
mov byte [esi + edi - 1], 0
jmp 0x4197d3
cmp byte [ebp - 0xd], 0
je 0x419811
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041f370
mov esi, dword [ebp - 0x38]
mov word [esi + edi], 0
cmp byte [ebp - 0xd], 0
je 0x419811
push esi
lea ecx, [ebp - 0x18]
call fcn.00401c40
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00402610
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41986b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41986b
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00402750
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.00402610
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x419861
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push edi
call fcn.00447350
add esp, 8
test esi, esi
je 0x419878
push esi
call fcn.0049da8e
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret