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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6802
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x540c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x5406d8]
mov ecx, 0x5406d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x42423b
mov ecx, 0x5220b4
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4241c6
test dx, dx
je 0x4241c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4241c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4241a0
xor eax, eax
jmp 0x4241cb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x42423b
lea ecx, [ebp - 0x20]
call fcn.00423090
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], 3
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x424201
push 0x80004005
call fcn.00401a60
mov eax, dword [esi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424229
test dx, dx
je 0x424225
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424229
add eax, 4
add ecx, 4
test dx, dx
jne 0x424203
xor eax, eax
jmp 0x42422e
sbb eax, eax
or eax, 1
test eax, eax
sete al
mov byte [ebp - 0xd], 0
test al, al
je 0x42423f
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
or ebx, 0xffffffff
test al, 2
je 0x424279
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424279
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x424318
lea ecx, [ebp - 0x18]
call fcn.00423090
mov dword [ebp - 4], 4
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x4242df
cmp dword [esi + 0xc], 0
jl 0x4242d4
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4242d4
call fcn.004028c0
mov dword [ebp - 0x20], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4242cd
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 0x4242df
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00402790
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x424643
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 0x424398
lea ecx, [ebp - 0x18]
call fcn.00423090
mov dword [ebp - 4], 6
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x424393
cmp dword [esi + 0xc], 0
jl 0x424388
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x424388
call fcn.004028c0
mov dword [ebp - 0x20], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424381
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 0x424393
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00402790
jmp 0x4242df
lea ecx, [ebp - 0x30]
push ecx
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x424439
lea ecx, [ebp - 0x24]
call fcn.00423090
mov dword [ebp - 4], 8
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x42440f
cmp dword [esi + 0xc], 0
jl 0x424404
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x424404
call fcn.004028c0
mov dword [ebp - 0x18], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4243fd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi], eax
jmp 0x42440f
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00402790
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42463a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42463a
cmp dword [ebp - 0x2c], 0
je 0x424458
lea ecx, [ebp - 0x24]
call fcn.00423090
mov dword [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.004026b0
jmp 0x42440f
cmp dword [ebp - 0x30], 0
je 0x42463a
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xc
push dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.00424880
mov esi, dword [ebp - 0x3c]
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x28], 0
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424614
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xe]
push eax
lea edx, [ebp - 0xd]
mov ecx, esi
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
mov dword [ebp - 0x18], 0
call fcn.00422af0
mov eax, dword [ebp - 0x18]
add esp, 8
test eax, eax
jle 0x4244ec
add eax, esi
push eax
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00424960
mov esi, dword [ebp - 0x3c]
cmp byte [ebp - 0xe], 0
mov edi, dword [ebp - 0x38]
je 0x424514
mov ecx, esi
cmp esi, edi
je 0x424514
jmp 0x424500
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 0x424500
or ebx, 0xffffffff
sub edi, esi
cmp byte [esi + edi - 1], 0
je 0x424568
inc edi
push edi
lea ecx, [ebp - 0x3c]
call fcn.00424880
mov esi, dword [ebp - 0x3c]
mov byte [esi + edi - 1], 0
mov ecx, dword [0x545d90]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0xd
idiv ecx
cmp edx, 5
jne 0x42454e
dec dword [0x5465f0]
cmp byte [ebp - 0xd], 0
je 0x4245bb
inc edi
push edi
lea ecx, [ebp - 0x3c]
call fcn.00424880
mov esi, dword [ebp - 0x3c]
mov byte [esi + edi - 1], 0
jmp 0x424583
cmp byte [ebp - 0xd], 0
je 0x4245bb
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00424880
mov esi, dword [ebp - 0x3c]
mov word [esi + edi], 0
push esi
lea ecx, [ebp - 0x24]
call fcn.004025a0
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.004026b0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x424614
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x424614
mov eax, dword [0x5406d8]
mov ecx, 0x5406d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xf
push esi
lea ecx, [ebp - 0x18]
call fcn.00403700
mov byte [ebp - 4], 0x10
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004026b0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42460b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, edi
mov ecx, edi
call fcn.00422640
mov byte [ebp - 4], 0
test esi, esi
je 0x42463a
push esi
call fcn.004af5b5
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
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