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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x42b040]
xor eax, esp
mov dword [esp + 0x298], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x844
mov dword [esp + 0x14], eax
mov dword [0x42f314], eax
call fcn.0040aa4a
add esp, 4
mov dword [0x42c708], eax
test eax, eax
je 0x401c17
push 0x844
push 0
push eax
call fcn.00408bd0
add esp, 0xc
test eax, eax
je 0x401c17
call fcn.00403070
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 0x401807
mov eax, dword [0x42d2d8]
inc eax
mov dword [0x42d2d8], eax
cmp eax, 9
jle 0x4017fb
mov dword [0x42d2d8], edi
xor eax, eax
imul edi, eax, 0x1f4
add edi, 0x42d2e0
test ecx, ecx
jne 0x40180f
mov byte [edi], cl
jmp 0x401837
mov edx, edi
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x401813
cmp byte [edi], 0x22
jne 0x401837
lea eax, [edi + 1]
push 0x22
push eax
call fcn.0040c974
add esp, 8
test eax, eax
je 0x401837
mov byte [eax], 0
push 0x5c
push edi
call fcn.0040c253
mov esi, eax
add esp, 8
test esi, esi
jne 0x40187f
push 0x5d
push edi
call fcn.0040c974
mov esi, eax
add esp, 8
test esi, esi
jne 0x40187f
push 0x2f
push edi
call fcn.0040c253
mov esi, eax
add esp, 8
test esi, esi
jne 0x40187f
push 0x3a
push edi
call fcn.0040c253
mov esi, eax
add esp, 8
test esi, esi
jne 0x40187f
mov esi, edi
jmp 0x401880
inc esi
push 0x2e
push esi
call fcn.0040c253
add esp, 8
test eax, eax
je 0x401892
mov byte [eax], 0
imul eax, dword [0x42d2d8], 0x1f4
add eax, 0x42d2e0
cmp edi, eax
je 0x4018b4
sub edi, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edi + esi - 1], al
test al, al
jne 0x4018a7
mov edx, dword [0x42c708]
push ecx
lea ecx, [edx + 0x258]
call fcn.00401eb0
add esp, 4
lea eax, [esp + 0x14]
push eax
push 0x8002
push dword [0x42f314]
call dword [sym.imp.USER32.dll_GetClassInfoA]
mov eax, dword [0x42f314]
push str.rdpicon
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], str.EncoderClass
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x401923
push dword [0x42c708]
call fcn.0040aa2f
add esp, 4
jmp 0x401c17
cmp dword [0x42f290], 0
jne 0x401996
xorps xmm0, xmm0
mov dword [0x42f2b0], 0
movups xmmword [0x42f2a0], xmm0
push 0x42f294
movups xmmword [0x42f290], xmm0
movups xmmword [0x42f294], xmm0
movq qword [0x42f2a4], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10
call fcn.0040aa4a
mov esi, eax
add esp, 4
test esi, esi
je 0x401977
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push str.GSSL.cs
mov dword [0x42f294], esi
call fcn.0040c7ed
mov dword [esi], eax
add esp, 4
mov dword [0x42f290], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
xor esi, esi
cmp dword [0x42f294], 0xffffffff
push 0x42f294
cmovne esi, dword [0x42f294]
mov dword [esp + 0x40], eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x4019d6
push 1
call edi
push 0x42f294
call ebx
test eax, eax
je 0x4019c7
test esi, esi
je 0x4019ef
mov eax, dword [esp + 0x3c]
mov dword [esi + 0xc], eax
mov dword [esi + 4], str.D:MyProjectsRdpZapperLoaderSettings.c
mov dword [esi + 8], 0x608
push 0x10
call fcn.0040aa4a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401a05
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov eax, dword [0x42f2ac]
mov ecx, 4
inc eax
mov dword [0x42f2ac], eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
push dword [0x42f2b0]
call fcn.0040a953
mov ecx, dword [0x42f2ac]
add esp, 8
mov dword [0x42f2b0], eax
mov dword [eax + ecx*4 - 4], ebx
test ebx, ebx
je 0x401a9a
mov esi, 4
mov eax, 0x42829f
nop dword [eax + eax]
cmp byte [eax], 0
jne 0x401a5e
dec eax
dec esi
cmp eax, 0x42829c
ja 0x401a50
push 0x2d
push str.D:MyProjectsRdpZapperLoaderMain2.c
lea eax, [esi + 1]
push eax
push dword [ebx]
call fcn.0040a953
add esp, 0x10
test eax, eax
je 0x401a94
mov dword [ebx], eax
test esi, esi
je 0x401a8c
push esi
push 0x42829c
push eax
call fcn.00408650
add esp, 0xc
mov eax, dword [ebx]
mov byte [esi + eax], 0
jmp 0x401a9a
mov dword [ebx], 0
lea ecx, [ebx + 0xc]
mov dword [ecx], str._0x
call fcn.00403c80
push 0x42f294
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x42c708]
push str._sRdpZapper__.lic
add eax, 0x258
push eax
push 0x106
push str.D:MyProjectsRdpZapperLoaderMain2.c
push str._sRdpZapper__.lic
lea eax, [esp + 0x54]
push 0x12c
push eax
call fcn.004023d0
add esp, 0x1c
lea ecx, [esp + 0x40]
call section..text
mov eax, dword [0x42c70c]
test eax, eax
je 0x401bff
cmp dword [eax + 4], 0
je 0x401bff
mov ecx, dword [0x42c708]
push str._s_s.bin
lea eax, [ecx + 0x12c]
push eax
lea eax, [ecx + 0x258]
push eax
push 0x11b
push str.D:MyProjectsRdpZapperLoaderMain2.c
push str._s_s.bin
lea eax, [esp + 0x188]
push 0x12c
push eax
call fcn.004023d0
add esp, 0x20
lea eax, [esp + 0x170]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [0x42f30c]
mov esi, eax
cmp esi, 0xffffffff
je 0x401c17
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [0x42c710], eax
call fcn.0040aa4a
add esp, 4
mov dword [0x42c6fc], eax
test eax, eax
je 0x401bf2
push 0
lea ecx, [esp + 0x40]
push ecx
push dword [0x42c710]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401bf2
mov eax, dword [0x42c710]
cmp eax, dword [esp + 0x3c]
jne 0x401bf2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 0
push esi
push 0x4016b0
push 0
push 0
call dword [0x42f310]
inc esi
cmp esi, 0x100
jl 0x401bb6
cmp dword [0x42c6f8], 0x100
jge 0x401c17
nop
push 0x64
call edi
cmp dword [0x42c6f8], 0x100
jl 0x401be0
jmp 0x401c17
test esi, esi
je 0x401c17
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c17
push 0
push 0x401590
push 0
push str.PinDialog
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [esp + 0x2a4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407618
mov esp, ebp
pop ebp
ret 0x10