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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8899
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x51eee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
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 - 0x18], 1
cmp dword [eax - 0xc], 0
je 0x4345f8
mov ecx, 0x4d8e30
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x434586
test dx, dx
je 0x434582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x434586
add eax, 4
add ecx, 4
test dx, dx
jne 0x434560
xor eax, eax
jmp 0x43458b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x4345f8
lea eax, [ebp - 0x1c]
push eax
call fcn.00433650
mov ecx, dword [eax]
xor eax, eax
add esp, 4
test ecx, ecx
setne al
mov dword [ebp - 0x18], 3
test eax, eax
jne 0x4345be
push 0x80004005
call fcn.00404480
mov eax, dword [esi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4345e6
test dx, dx
je 0x4345e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4345e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4345c0
xor eax, eax
jmp 0x4345eb
sbb eax, eax
or eax, 1
test eax, eax
sete al
mov byte [ebp - 0xe], 0
test al, al
je 0x4345fc
mov byte [ebp - 0xe], 1
mov eax, dword [ebp - 0x18]
or ebx, 0xffffffff
test al, 2
je 0x434628
mov edx, dword [ebp - 0x1c]
and eax, 0xfffffffd
add edx, 0xfffffff0
mov dword [ebp - 0x18], eax
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434628
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xe], 0
je 0x4346f4
lea eax, [ebp - 0x14]
push eax
call fcn.00433650
add esp, 4
mov ecx, dword [eax]
mov esi, dword [edi]
lea edx, [ecx - 0x10]
sub esi, 0x10
mov dword [ebp - 4], 1
cmp edx, esi
je 0x434696
cmp dword [esi + 0xc], 0
jl 0x43468b
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x43468b
push edx
call fcn.00404840
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x434684
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [edi], eax
jmp 0x434696
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00409950
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4346b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
call fcn.00434c40
test al, al
jne 0x4346d4
mov eax, dword [0x520340]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov dword [0x520340], eax
cmp esi, 0xffffffff
je 0x4346e0
push esi
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
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x4347a3
lea eax, [ebp - 0x24]
push eax
call fcn.00433650
add esp, 4
mov ecx, dword [eax]
mov esi, dword [edi]
lea edx, [ecx - 0x10]
sub esi, 0x10
mov dword [ebp - 4], 2
cmp edx, esi
je 0x43477d
cmp dword [esi + 0xc], 0
jl 0x434772
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x434772
push edx
call fcn.00404840
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43476b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [edi], eax
jmp 0x43477d
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00409950
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x43479b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
jmp 0x4346b7
lea eax, [ebp - 0x30]
push eax
xorps xmm0, xmm0
push esi
movq qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4347fc
lea eax, [ebp - 0x24]
push eax
call fcn.00433650
add esp, 4
mov dword [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00402af0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4346b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4346b7
cmp dword [ebp - 0x2c], 0
je 0x434817
lea eax, [ebp - 0x24]
push eax
call fcn.00433650
add esp, 4
mov dword [ebp - 4], 4
jmp 0x4347cd
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4346b7
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 5
call fcn.00439b90
mov esi, dword [ebp - 0x3c]
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x434882
test esi, esi
je 0x43479b
push esi
call fcn.004a5bbe
mov esi, dword [ebp - 0x14]
add esp, 4
jmp 0x4346b7
lea eax, [ebp - 0x20]
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 - 0x20], 0
call fcn.00450620
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
jle 0x4348c0
add eax, esi
push eax
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00439780
mov esi, dword [ebp - 0x3c]
cmp byte [ebp - 0xf], 0
mov edi, dword [ebp - 0x38]
je 0x43493f
mov ecx, esi
cmp esi, edi
je 0x4348e4
nop
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 0x4348d0
or ebx, 0xffffffff
mov ecx, dword [0x520340]
mov dword [ebp - 0x24], 0x11
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv dword [ebp - 0x24]
cmp edx, 7
jne 0x43493f
mov eax, 0x51eb851f
imul ecx
mov eax, dword [0x520340]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub eax, ecx
xor ecx, ecx
add eax, 0x2f4
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
push eax
call fcn.004a7190
add esp, 8
sub edi, esi
cmp byte [esi + edi - 1], 0
je 0x434995
inc edi
push edi
lea ecx, [ebp - 0x3c]
call fcn.00439b90
mov esi, dword [ebp - 0x3c]
mov byte [esi + edi - 1], 0
mov ecx, dword [0x520340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0xc
idiv ecx
cmp edx, 0xb
jne 0x43497b
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp byte [ebp - 0xd], 0
je 0x4349ee
inc edi
push edi
lea ecx, [ebp - 0x3c]
call fcn.00439b90
mov esi, dword [ebp - 0x3c]
mov byte [esi + edi - 1], 0
jmp 0x4349b0
cmp byte [ebp - 0xd], 0
je 0x4349ee
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00439b90
mov esi, dword [ebp - 0x3c]
mov word [esi + edi], 0
cmp byte [ebp - 0xd], 0
je 0x4349ee
push esi
lea ecx, [ebp - 0x24]
call fcn.00401ff0
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00402af0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x434a48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x434a48
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0040b410
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.00402af0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x434a3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push edi
call fcn.0044fc00
add esp, 8
test esi, esi
je 0x434a55
push esi
call fcn.004a5bbe
add esp, 4
mov esi, dword [ebp - 0x14]
jmp 0x4346b7