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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x42b040]
xor eax, esp
mov dword [esp + 0x290], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x394
mov dword [0x42f328], eax
call fcn.0040d458
add esp, 4
mov dword [0x42c708], eax
push 0x394
push 0
push eax
call fcn.004092d0
add esp, 0xc
test eax, eax
je 0x401b6d
call fcn.00403720
push 0x104
push dword [0x42c708]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [0x42c708]
lea edi, [ecx + 0x12c]
test edi, edi
jne 0x40175b
mov eax, dword [0x42c71c]
inc eax
mov dword [0x42c71c], eax
cmp eax, 9
jle 0x40174f
mov dword [0x42c71c], edi
xor eax, eax
imul edi, eax, 0x1f4
add edi, 0x42d2d8
test ecx, ecx
jne 0x401763
mov byte [edi], cl
jmp 0x40178b
mov edx, edi
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x401767
cmp byte [edi], 0x22
jne 0x40178b
lea eax, [edi + 1]
push 0x22
push eax
call fcn.0040f154
add esp, 8
test eax, eax
je 0x40178b
mov byte [eax], 0
push 0x5c
push edi
call fcn.0040ea40
mov esi, eax
add esp, 8
test esi, esi
jne 0x4017d3
push 0x5d
push edi
call fcn.0040f154
mov esi, eax
add esp, 8
test esi, esi
jne 0x4017d3
push 0x2f
push edi
call fcn.0040ea40
mov esi, eax
add esp, 8
test esi, esi
jne 0x4017d3
push 0x3a
push edi
call fcn.0040ea40
mov esi, eax
add esp, 8
test esi, esi
jne 0x4017d3
mov esi, edi
jmp 0x4017d4
inc esi
push 0x2e
push esi
call fcn.0040ea40
add esp, 8
test eax, eax
je 0x4017e6
mov byte [eax], 0
imul eax, dword [0x42c71c], 0x1f4
add eax, 0x42d2d8
cmp edi, eax
je 0x40180d
sub edi, esi
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edi + esi - 1], al
test al, al
jne 0x401800
mov edx, dword [0x42c708]
push ecx
lea ecx, [edx + 0x258]
call fcn.00402660
mov ecx, dword [0x42c708]
add esp, 4
movq xmm0, qword [str.D:RdpZapper]
movq qword [ecx + 0x258], xmm0
mov eax, dword [0x4283b0]
mov dword [ecx + 0x260], eax
mov al, byte [0x4283b4]
mov byte [ecx + 0x264], al
lea eax, [esp + 0xc]
push eax
push 0x8002
push dword [0x42f328]
call dword [sym.imp.USER32.dll_GetClassInfoA]
mov eax, dword [0x42f328]
push str.rdpicon
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], str.EncoderClass
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x4018a8
push dword [0x42c708]
call fcn.0040d43d
add esp, 4
jmp 0x401b6d
cmp dword [0x42f28c], 0
jne 0x40191b
xorps xmm0, xmm0
mov dword [0x42f2ac], 0
movups xmmword [0x42f29c], xmm0
push 0x42f290
movups xmmword [0x42f28c], xmm0
movups xmmword [0x42f290], xmm0
movq qword [0x42f2a0], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10
call fcn.0040d458
mov esi, eax
add esp, 4
test esi, esi
je 0x4018fc
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push str.GSSL.cs
mov dword [0x42f290], esi
call fcn.0040efda
mov dword [esi], eax
add esp, 4
mov dword [0x42f28c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
xor esi, esi
cmp dword [0x42f290], 0xffffffff
push 0x42f290
cmovne esi, dword [0x42f290]
mov dword [esp + 0x38], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x40195f
nop dword [eax]
push 1
call ebx
push 0x42f290
call edi
test eax, eax
je 0x401950
test esi, esi
je 0x401978
mov eax, dword [esp + 0x34]
mov dword [esi + 0xc], eax
mov dword [esi + 4], str.D:MyProjectsRdpZapperTestSettings.c
mov dword [esi + 8], 0x608
push 0x10
call fcn.0040d458
mov edi, eax
add esp, 4
test edi, edi
je 0x40198e
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov eax, dword [0x42f2a8]
mov ecx, 4
inc eax
mov dword [0x42f2a8], eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
push dword [0x42f2ac]
call fcn.0040b053
mov ecx, dword [0x42f2a8]
add esp, 8
mov dword [0x42f2ac], eax
mov dword [eax + ecx*4 - 4], edi
test edi, edi
je 0x401a1e
mov esi, 4
mov eax, 0x42838b
cmp byte [eax], 0
jne 0x4019e2
dec eax
dec esi
cmp eax, 0x428388
ja 0x4019d4
push 0x33
push str.D:MyProjectsRdpZapperTestMain.c
lea eax, [esi + 1]
push eax
push dword [edi]
call fcn.0040b053
add esp, 0x10
test eax, eax
je 0x401a18
mov dword [edi], eax
test esi, esi
je 0x401a10
push esi
push 0x428388
push eax
call fcn.00408d50
add esp, 0xc
mov eax, dword [edi]
mov byte [esi + eax], 0
jmp 0x401a1e
mov dword [edi], 0
lea ecx, [edi + 0xc]
mov dword [ecx], str._0x
call fcn.00404350
push 0x42f290
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x42c708]
add eax, 0x258
push eax
push str._sRdpZapper__.lic
lea eax, [esp + 0x40]
push 0x12c
push eax
call fcn.00401010
add esp, 0x10
lea ecx, [esp + 0x38]
call fcn.00401050
mov eax, dword [0x42c70c]
test eax, eax
je 0x401b6d
cmp dword [eax + 4], 0
je 0x401b6d
mov ecx, dword [0x42c708]
lea eax, [ecx + 0x12c]
push eax
lea eax, [ecx + 0x258]
push eax
push str._s_s.bin
lea eax, [esp + 0x174]
push 0x12c
push eax
call fcn.00401010
add esp, 0x14
lea eax, [esp + 0x168]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [0x42f30c]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b6d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [0x42c710], eax
call fcn.0040d458
add esp, 4
mov dword [0x42c6fc], eax
test eax, eax
je 0x401b62
push 0
lea ecx, [esp + 0x38]
push ecx
push dword [0x42c710]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401b62
mov eax, dword [0x42c710]
cmp eax, dword [esp + 0x34]
jne 0x401b62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
nop dword [eax]
push 0
push 0
push esi
push 0x4015d0
push 0
push 0
call dword [0x42f310]
inc esi
cmp esi, 0x100
jl 0x401b20
cmp dword [0x42c6f8], 0x100
jge 0x401b6d
nop dword [eax]
push 0x64
call ebx
cmp dword [0x42c6f8], 0x100
jl 0x401b50
jmp 0x401b6d
test esi, esi
je 0x401b6d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x29c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407d18
mov esp, ebp
pop ebp
ret 0x10