Function at 0x4f4b40
Capabilities:
Accept command line arguments
Get file size
Read file on windows

Disassembly:
sub esp, 0xa04
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa14]
push 0xff
lea eax, [esp + 0x30c]
push eax
push 2
mov ebx, ecx
push esi
mov dword [ebx + 0xdd0], esi
call dword [sym.imp.USER32.dll_LoadStringA]
xor ebp, ebp
push ebp
push esi
push ebp
push ebp
push ebp
push closesocket
push ebp
push closesocket
push 0xcf0000
lea ecx, [esp + 0x32c]
push ecx
push str.ShockwaveFlash
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
cmp esi, ebp
jne 0x4f4bad
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa04
ret 0xc
push 1
push esi
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push esi
mov ecx, ebx
mov dword [ebx + 0xd80], esi
call fcn.004ec300
push ebx
lea ecx, [esp + 0x19c]
call fcn.004a4550
mov esi, dword [esp + 0xa1c]
cmp esi, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
je 0x4f4cf9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f4bf1
sub eax, edx
mov dword [esp + 0x24], eax
je 0x4f4cf9
call fcn.004df210
test al, al
je 0x4f4c9c
mov ecx, ebx
call fcn.004a7100
cmp eax, 5
jle 0x4f4c9c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebp
je 0x4f4c9c
push ebp
push eax
call fcn.004cadb0
add esp, 8
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x4f4c9c
mov cl, byte [eax]
cmp cl, 0x22
jne 0x4f4c67
inc eax
push 0x22
push eax
call fcn.0043a5d0
add esp, 8
cmp eax, ebp
je 0x4f4c92
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x4f4c92
cmp cl, 0x20
jne 0x4f4c92
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4f4c58
jmp 0x4f4c92
test cl, cl
je 0x4f4c7f
jmp 0x4f4c70
cmp cl, 0x20
je 0x4f4c7f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4f4c70
jmp 0x4f4c92
mov cl, byte [eax]
test cl, cl
je 0x4f4c92
cmp cl, 0x20
jne 0x4f4c92
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4f4c85
mov esi, eax
mov dword [esp + 0x18], 1
cmp byte [esi], 0x22
jne 0x4f4cf0
push 0x104
inc esi
lea edx, [esp + 0x98]
push esi
push edx
call fcn.005d26a0
lea eax, [esp + 0xa0]
add esp, 0xc
mov byte [esp + 0x197], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f4cd0
sub eax, edx
mov byte [esp + eax + 0x93], cl
lea eax, [esp + 0x94]
mov dword [esp + 0x14], eax
jmp 0x4f4f99
mov dword [esp + 0x14], esi
jmp 0x4f4f99
push edi
lea ecx, [esp + 0x34]
call fcn.004de850
call fcn.004df210
test al, al
je 0x4f4d48
cmp dword [esp + 0x44], ebp
je 0x4f4d48
mov eax, dword [esp + 0x50]
cmp eax, ebp
je 0x4f4d48
push 0x104
lea ecx, [esp + 0x410]
push ecx
push ebp
call eax
push ebp
push 0x80
push 3
push ebp
push 1
push closesocket
lea edx, [esp + 0x424]
push edx
call dword [esp + 0x60]
jmp 0x4f4d7a
push 0x104
lea eax, [esp + 0x20c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
push 0x80
push 3
push ebp
push 1
push closesocket
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f4f8f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov esi, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
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 0x4f4f86
cmp dword [esp + 0x2c], 0xfa123456
jne 0x4f4f86
mov ecx, dword [ebx + 0x18]
push 0
mov dword [ebx + 0xd84], 1
call fcn.0041dd70
mov ecx, eax
call fcn.0047aba0
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.004bbfa0
mov esi, eax
test esi, esi
je 0x4f4f86
mov dword [esp + 0x14], 0
call fcn.004df210
test al, al
push 0
je 0x4f4ed4
lea edx, [esp + 0x410]
push edx
call fcn.004cadb0
add esp, 8
test eax, eax
mov dword [esp + 0x24], eax
je 0x4f4ee7
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 0x4f4e99
mov edx, dword [esp + 0x24]
push 1
push edx
lea ecx, [ebx + 0x7a4]
call fcn.004c8550
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0043f0a0
add esp, 4
jmp 0x4f4ee7
mov eax, dword [esp + 0x24]
push 0
push eax
call fcn.004f3800
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4f4ec5
push 0
push ebp
lea ecx, [ebx + 0x7a4]
call fcn.004c8550
push ebp
call fcn.0043f0a0
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0043f0a0
add esp, 4
jmp 0x4f4ee7
lea edx, [esp + 0x20c]
push edx
lea ecx, [ebx + 0x7a4]
call fcn.004c8550
lea ebp, [ebx + 0x7a4]
push ebp
lea ecx, [esi + 0xd4]
call fcn.00434980
push ebp
lea ecx, [esi + 0x110]
call fcn.00434980
mov ebp, dword [esp + 0x30]
push ebp
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.00494880
lea esp, [esp]
cmp ebp, 0x400
jbe 0x4f4f2f
mov eax, 0x400
jmp 0x4f4f35
test ebp, ebp
mov eax, ebp
je 0x4f4f6e
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x620]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f4f6e
mov eax, dword [esp + 0x14]
push eax
sub ebp, eax
lea eax, [esp + 0x618]
push eax
mov ecx, esi
call fcn.004a3b70
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x4f4f20
mov ecx, esi
call fcn.004a42a0
mov ecx, ebx
call fcn.004a7100
push eax
push 1
mov ecx, esi
call fcn.004a1820
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
lea ecx, [esp + 0x34]
call fcn.004de830
pop edi
cmp dword [ebx + 0xd84], ebp
jne 0x4f4fe1
mov ecx, dword [ebx + 0x18]
call fcn.0041dd70
mov esi, eax
push 1
mov ecx, esi
call fcn.0047aba0
mov byte [esi + 1], 1
mov byte [esi + 2], 1
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x4f4fd2
mov ecx, dword [esp + 0x18]
push ebp
push ecx
push esi
mov ecx, ebx
call fcn.004bb9d0
mov edx, dword [esp + 0x18]
push edx
push esi
push ebx
call fcn.004f3b00
add esp, 0xc
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x4f4ff2
push eax
call fcn.0043f0a0
add esp, 4
mov eax, dword [esp + 0xa18]
mov ecx, dword [ebx + 0xd80]
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebx + 0xd80]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x198]
call fcn.004a4560
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xa04
ret 0xc