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 [0x42fee8], eax
call fcn.0040d6a8
add esp, 4
mov dword [0x42d2e0], eax
push 0x394
push 0
push eax
call fcn.00409520
add esp, 0xc
test eax, eax
je 0x401b5e
call fcn.00403720
push 0x104
push dword [0x42d2e0]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [0x42d2e0]
lea edi, [ecx + 0x12c]
test edi, edi
jne 0x40175b
mov eax, dword [0x42d2f4]
inc eax
mov dword [0x42d2f4], eax
cmp eax, 9
jle 0x40174f
mov dword [0x42d2f4], edi
xor eax, eax
imul edi, eax, 0x1f4
add edi, 0x42deb0
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.0040f3a4
add esp, 8
test eax, eax
je 0x40178b
mov byte [eax], 0
push 0x5c
push edi
call fcn.0040ec90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4017d3
push 0x5d
push edi
call fcn.0040f3a4
mov esi, eax
add esp, 8
test esi, esi
jne 0x4017d3
push 0x2f
push edi
call fcn.0040ec90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4017d3
push 0x3a
push edi
call fcn.0040ec90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4017d3
mov esi, edi
jmp 0x4017d4
inc esi
push 0x2e
push esi
call fcn.0040ec90
add esp, 8
test eax, eax
je 0x4017e6
mov byte [eax], 0
imul eax, dword [0x42d2f4], 0x1f4
add eax, 0x42deb0
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 [0x42d2e0]
push ecx
lea ecx, [edx + 0x258]
call fcn.00402650
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0x8002
push dword [0x42fee8]
call dword [sym.imp.USER32.dll_GetClassInfoA]
mov eax, dword [0x42fee8]
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 0x40187c
push dword [0x42d2e0]
call fcn.0040d68d
add esp, 4
jmp 0x401b5e
cmp dword [0x42fe64], 0
jne 0x4018ef
xorps xmm0, xmm0
mov dword [0x42fe84], 0
movups xmmword [0x42fe74], xmm0
push 0x42fe68
movups xmmword [0x42fe64], xmm0
movups xmmword [0x42fe68], xmm0
movq qword [0x42fe78], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10
call fcn.0040d6a8
mov esi, eax
add esp, 4
test esi, esi
je 0x4018d0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push str.GSSL.cs
mov dword [0x42fe68], esi
call fcn.0040f22a
mov dword [esi], eax
add esp, 4
mov dword [0x42fe64], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
xor esi, esi
cmp dword [0x42fe68], 0xffffffff
push 0x42fe68
cmovne esi, dword [0x42fe68]
mov dword [esp + 0x38], eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x40192f
push 1
call edi
push 0x42fe68
call ebx
test eax, eax
je 0x401920
test esi, esi
je 0x401948
mov eax, dword [esp + 0x34]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x42c630
mov dword [esi + 8], 0x608
push 0x10
call fcn.0040d6a8
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40195e
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov eax, dword [0x42fe80]
mov ecx, 4
inc eax
mov dword [0x42fe80], eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
push dword [0x42fe84]
call fcn.0040b2a3
mov ecx, dword [0x42fe80]
add esp, 8
mov dword [0x42fe84], eax
mov dword [eax + ecx*4 - 4], ebx
test ebx, ebx
je 0x401a1a
cmp byte [0x42c000], 0
je 0x4019bb
mov esi, 0x42c000
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4019b0
sub esi, ecx
jmp 0x4019bd
xor esi, esi
lea eax, [esi + 0x42bfff]
cmp eax, 0x42c000
jbe 0x4019de
nop word [eax + eax]
cmp byte [eax], 0
jne 0x4019de
dec eax
dec esi
cmp eax, 0x42c000
ja 0x4019d0
push 0x33
push str.D:MyProjectsRdpZapperTestMain.c
lea eax, [esi + 1]
push eax
push dword [ebx]
call fcn.0040b2a3
add esp, 0x10
test eax, eax
je 0x401a14
mov dword [ebx], eax
test esi, esi
je 0x401a0c
push esi
push 0x42c000
push eax
call fcn.00408fa0
add esp, 0xc
mov eax, dword [ebx]
mov byte [esi + eax], 0
jmp 0x401a1a
mov dword [ebx], 0
lea ecx, [ebx + 0xc]
mov dword [ecx], str._0x
call fcn.004045a0
push 0x42fe68
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x42d2e0]
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 [0x42d2e4]
test eax, eax
je 0x401b5e
cmp dword [eax + 4], 0
je 0x401b5e
mov ecx, dword [0x42d2e0]
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 [0x42fed0]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b5e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [0x42d2e8], eax
call fcn.0040d6a8
add esp, 4
mov dword [0x42d2d4], eax
test eax, eax
je 0x401b53
push 0
lea ecx, [esp + 0x38]
push ecx
push dword [0x42d2e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401b53
mov eax, dword [0x42d2e8]
cmp eax, dword [esp + 0x34]
jne 0x401b53
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 0
push esi
push 0x4015d0
push 0
push 0
call dword [0x42fed4]
inc esi
cmp esi, 0x100
jl 0x401b18
cmp dword [0x42d2d0], 0x100
jge 0x401b5e
push 0x64
call edi
cmp dword [0x42d2d0], 0x100
jl 0x401b41
jmp 0x401b5e
test esi, esi
je 0x401b5e
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.00407f68
mov esp, ebp
pop ebp
ret 0x10