Function at 0x4f5690
Capabilities:
Accept command line arguments
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa1c
push ebx
push esi
mov esi, dword [esp + 0xa28]
push edi
push 0xff
lea eax, [esp + 0x324]
push eax
push 2
mov ebx, ecx
push esi
mov dword [ebx + 0xdd8], esi
call dword [sym.imp.USER32.dll_LoadStringA]
xor edi, edi
push edi
push esi
push edi
push edi
push edi
push closesocket
push edi
push closesocket
push 0xcf0000
lea ecx, [esp + 0x344]
push ecx
push str.ShockwaveFlash
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
cmp esi, edi
jne 0x4f56fd
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xa1c
ret 0xc
push ebp
push 1
push esi
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push esi
mov ecx, ebx
mov dword [ebx + 0xd88], esi
call fcn.004ecd60
push ebx
lea ecx, [esp + 0x1b8]
call fcn.004a49a0
mov esi, dword [esp + 0xa38]
xor ebp, ebp
test esi, esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x4f584e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f5744
sub eax, edx
mov dword [esp + 0x28], eax
je 0x4f584e
call fcn.004dfb70
test al, al
je 0x4f57f3
mov ecx, ebx
call fcn.004a76d0
cmp eax, 5
jle 0x4f57f3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x4f57f3
push 0
push eax
call fcn.004cb710
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
je 0x4f57f3
mov cl, byte [eax]
cmp cl, 0x22
jne 0x4f57bf
inc eax
push 0x22
push eax
call fcn.0043a4f0
add esp, 8
test eax, eax
je 0x4f57e5
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x4f57e5
cmp cl, 0x20
jne 0x4f57e5
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4f57b0
jmp 0x4f57e5
test cl, cl
je 0x4f57d2
cmp cl, 0x20
je 0x4f57d2
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4f57c3
jmp 0x4f57e5
mov cl, byte [eax]
test cl, cl
je 0x4f57e5
cmp cl, 0x20
jne 0x4f57e5
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4f57d8
mov dword [esp + 0x24], 1
mov edi, dword [esp + 0x24]
mov esi, eax
cmp byte [esi], 0x22
jne 0x4f5843
push 0x104
inc esi
lea edx, [esp + 0xb4]
push esi
push edx
call fcn.005d2a40
lea eax, [esp + 0xbc]
add esp, 0xc
mov byte [esp + 0x1b3], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f5821
sub eax, edx
mov byte [esp + eax + 0xaf], cl
lea eax, [esp + 0xb0]
mov dword [esp + 0x18], eax
mov ebp, eax
jmp 0x4f5af6
mov dword [esp + 0x18], esi
mov ebp, esi
jmp 0x4f5af6
lea ecx, [esp + 0x4c]
call fcn.004df120
call fcn.004dfb70
test al, al
je 0x4f58a1
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4f58a1
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4f58a1
push 0x104
lea ecx, [esp + 0x428]
push ecx
push 0
call eax
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x43c]
push edx
call dword [esp + 0x78]
jmp 0x4f58d6
push 0x104
lea eax, [esp + 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [esp + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f5ae9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
mov esi, eax
push 0
lea edx, [esi - 8]
push edx
push edi
call ebp
push 0
lea eax, [esp + 0x2c]
push eax
push 8
lea ecx, [esp + 0x38]
push ecx
push edi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x28], 8
jne 0x4f5ade
cmp dword [esp + 0x2c], 0xfa123456
jne 0x4f5ade
mov ecx, dword [ebx + 0x18]
push 0
mov dword [ebx + 0xd8c], 1
call fcn.0041dce0
mov ecx, eax
call fcn.0047ac20
mov eax, dword [esp + 0x30]
push 0
sub esi, eax
push 0
sub esi, 8
push esi
push edi
call ebp
push 0
push 0
push 0
mov ecx, ebx
call fcn.004bc8c0
mov esi, eax
test esi, esi
je 0x4f5ade
mov dword [esp + 0x14], 0
call fcn.004dfb70
test al, al
push 0
je 0x4f5a33
lea edx, [esp + 0x428]
push edx
call fcn.004cb710
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4f5a46
push 1
push 0
push 3
push edi
call ebp
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
push 0
push 0xfffffffffffffffc
push edi
call ebp
cmp byte [esp + 0x13], 5
jbe 0x4f59f8
mov edx, dword [esp + 0x1c]
push 1
push edx
lea ecx, [ebx + 0x7a4]
call fcn.004c8e90
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043f020
add esp, 4
jmp 0x4f5a46
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.004f42f0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4f5a24
push 0
push ebp
lea ecx, [ebx + 0x7a4]
call fcn.004c8e90
push ebp
call fcn.0043f020
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043f020
add esp, 4
jmp 0x4f5a46
lea edx, [esp + 0x224]
push edx
lea ecx, [ebx + 0x7a4]
call fcn.004c8e90
lea ebp, [ebx + 0x7a4]
push ebp
lea ecx, [esi + 0xd4]
call fcn.004348a0
push ebp
lea ecx, [esi + 0x110]
call fcn.004348a0
mov ebp, dword [esp + 0x30]
push ebp
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.00494cf0
cmp ebp, 0x400
jbe 0x4f5a87
mov eax, 0x400
jmp 0x4f5a8d
test ebp, ebp
mov eax, ebp
je 0x4f5ac6
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x638]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f5ac6
mov eax, dword [esp + 0x14]
push eax
sub ebp, eax
lea eax, [esp + 0x630]
push eax
mov ecx, esi
call fcn.004a3f90
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x4f5a78
mov ecx, esi
call fcn.004a46f0
mov ecx, ebx
call fcn.004a76d0
push eax
push 1
mov ecx, esi
call fcn.004a1c40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
call fcn.004df100
mov edi, dword [esp + 0x24]
mov eax, dword [ebx + 0xd8c]
test eax, eax
jne 0x4f5bc7
mov ecx, dword [ebx + 0x18]
call fcn.0041dce0
mov esi, eax
push 1
mov ecx, esi
call fcn.0047ac20
test ebp, ebp
mov byte [esi + 1], 1
mov byte [esi + 2], 1
je 0x4f5bbc
lea ecx, [esp + 0x2c]
call fcn.00438e70
lea ecx, [esp + 0x3c]
call fcn.00438e70
cmp edi, 1
jne 0x4f5b4a
push ebp
lea ecx, [esp + 0x30]
call fcn.00438d60
jmp 0x4f5b58
test edi, edi
jne 0x4f5b58
push ebp
lea ecx, [esp + 0x30]
call fcn.00438d10
push 0x3a
push ebp
call fcn.0043a4f0
add esp, 8
test eax, eax
je 0x4f5b6e
sub eax, ebp
cmp eax, 1
jg 0x4f5b87
mov ecx, dword [ebx + 0xbb4]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.004e7250
test al, al
jne 0x4f5b95
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
call fcn.00438ca0
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00438e00
push eax
mov ecx, ebx
call fcn.004bc2f0
lea ecx, [esp + 0x3c]
call fcn.00438bc0
lea ecx, [esp + 0x2c]
call fcn.00438bc0
push edi
push ebp
push ebx
call fcn.004f45f0
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
pop ebp
je 0x4f5bd9
push eax
call fcn.0043f020
add esp, 4
mov edx, dword [esp + 0xa30]
mov eax, dword [ebx + 0xd88]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0xd88]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x1b0]
call fcn.004a49b0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xa1c
ret 0xc