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

Disassembly:
sub esp, 0x614
lea eax, [esp + 0x114]
push ebp
push esi
mov esi, dword [esp + 0x620]
push 0xff
mov ebp, ecx
push eax
push 2
push esi
mov dword [ebp + 0x1088], esi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
lea ecx, [esp + 0x13c]
push 0xcf0000
push ecx
push str.ShockwaveFlash
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x4660ed
pop esi
pop ebp
add esp, 0x614
ret 0xc
push edi
push 1
push esi
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push esi
mov ecx, ebp
mov dword [ebp + 0x1048], esi
call fcn.00461b90
mov edx, dword [esp + 0x62c]
test edx, edx
je 0x46617b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46617b
cmp byte [edx], 0x22
jne 0x46616c
lea edi, [edx + 1]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x1f], al
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.0044be00
jmp 0x4662ee
push 1
push edx
mov ecx, ebp
call fcn.0044be00
jmp 0x4662ee
lea edx, [esp + 0x1c]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esp + 0x30]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4662ee
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
push 0
push 0
lea ecx, [esi - 8]
push ecx
push edi
call ebx
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x20]
push 8
push eax
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 8
jne 0x4662e6
cmp dword [esp + 0x18], 0xfa123456
jne 0x4662e6
mov eax, dword [esp + 0x1c]
push 0
sub esi, eax
push 0
sub esi, 8
mov dword [ebp + 0x104c], 1
push esi
push edi
call ebx
push 0
push 0
push 0
mov ecx, ebp
call fcn.0043f890
mov esi, eax
test esi, esi
je 0x4662e6
lea ecx, [esp + 0x20]
lea ebx, [ebp + 0xd9c]
push ecx
mov ecx, ebx
call fcn.00451380
lea ecx, [esi + 0x1f0]
cmp ecx, ebx
je 0x46625c
push ebx
call fcn.00451330
push ebx
lea ecx, [ebp + 0xccc]
call fcn.0042b970
push eax
lea ecx, [esi + 0x140]
call fcn.0043e0d0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
cmp ebx, 0x400
jbe 0x46628f
mov eax, 0x400
jmp 0x466295
test ebx, ebx
mov eax, ebx
je 0x4662ce
lea edx, [esp + 0x10]
push 0
push edx
push eax
lea eax, [esp + 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4662ce
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x224]
push eax
push ecx
mov ecx, esi
sub ebx, eax
call fcn.0043b2d0
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x466280
mov ecx, esi
call fcn.0043b790
mov ecx, ebp
call fcn.0044d330
push eax
push 1
mov ecx, esi
call fcn.004380b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov edx, dword [esp + 0x628]
mov eax, dword [ebp + 0x1048]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0x1048]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x614
ret 0xc