Function at 0x448530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
movsx eax, word [0xa77ade]
mov ecx, dword [0x870e24]
push ebx
xor ebx, ebx
push ebp
push esi
cmp ecx, ebx
push edi
mov dword [esp + 0x18], eax
je 0x448845
cmp eax, 1
jl 0x448845
mov eax, dword [0x870e98]
dec eax
je 0x448574
dec eax
je 0x44856d
xor esi, esi
jmp 0x448579
mov esi, 0x4716b8
jmp 0x448579
mov esi, 0x4713b8
push 0x428
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
cmp ebp, ebx
je 0x448845
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
cmp ecx, ebx
jne 0x4485b1
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9c
ret
mov edx, 0x100
mov edi, 8
cmp esi, 0x472bb8
mov dword [ecx], 0x28
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov word [ecx + 0xc], 1
mov word [ecx + 0xe], di
mov dword [ecx + 0x14], 0x10000
mov dword [ecx + 0x20], edx
jne 0x448606
lea eax, [ecx + 0x29]
mov cl, byte [esi]
inc esi
mov byte [eax + 1], cl
add eax, 4
mov dl, byte [esi]
inc esi
mov byte [eax - 4], dl
mov cl, byte [esi]
inc esi
mov byte [eax - 5], cl
mov byte [eax - 2], bl
dec edi
jne 0x4485e6
jmp 0x448717
cmp esi, ebx
jne 0x4486f7
mov eax, dword [0x870e9c]
cmp eax, ebx
jne 0x4486c9
xor edi, edi
lea esi, [ecx + 0x29]
mov eax, 0x828cbfbf
add esi, 4
imul edi
add edx, edi
add edi, 0xff
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, 0xfa05
mov byte [esi - 3], dl
mov byte [esi - 4], dl
mov byte [esi - 5], dl
mov byte [esi - 2], bl
jle 0x448620
mov dl, byte [0x472bbb]
mov byte [ecx + 0x41a], dl
mov al, byte [0x472bbc]
mov byte [ecx + 0x419], al
mov dl, byte [0x472bbd]
mov byte [ecx + 0x418], dl
mov byte [ecx + 0x41b], bl
mov byte [ecx + 0x41e], 0xff
mov byte [ecx + 0x41d], 0xff
mov byte [ecx + 0x41c], 0xff
mov byte [ecx + 0x41f], bl
mov byte [ecx + 0x422], 0xff
mov byte [ecx + 0x421], bl
mov byte [ecx + 0x420], 0xff
mov byte [ecx + 0x423], bl
mov byte [ecx + 0x426], bl
mov byte [ecx + 0x425], 0xff
mov byte [ecx + 0x424], bl
mov byte [ecx + 0x427], bl
jmp 0x448717
lea eax, [eax + eax*2]
mov esi, edx
shl eax, 8
add ecx, 0x29
lea eax, [eax + 0x4719b8]
mov dl, byte [eax]
inc eax
mov byte [ecx + 1], dl
add ecx, 4
mov dl, byte [eax]
inc eax
mov byte [ecx - 4], dl
mov dl, byte [eax]
inc eax
mov byte [ecx - 5], dl
mov byte [ecx - 2], bl
dec esi
jne 0x4486da
jmp 0x448717
lea eax, [ecx + 0x29]
mov edi, edx
mov cl, byte [esi]
inc esi
mov byte [eax + 1], cl
add eax, 4
mov dl, byte [esi]
inc esi
mov byte [eax - 4], dl
mov cl, byte [esi]
inc esi
mov byte [eax - 5], cl
mov byte [eax - 2], bl
dec edi
jne 0x4486fc
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call edi
call sub.AVIFIL32.dll_AVIFileInit
mov edx, dword [esp + 0xb0]
push ebx
push 0x1001
lea eax, [esp + 0x1c]
push edx
push eax
call sub.AVIFIL32.dll_AVIFileOpenA
test eax, eax
jne 0x448839
mov eax, dword [0x473e2c]
mov esi, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x20], 0x73646976
mov dword [esp + 0x24], 0x64697663
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x30], bx
mov word [esp + 0x32], bx
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
je 0x44879f
lea eax, [esi - 2]
xor ecx, ecx
cmp eax, ebx
setle cl
dec ecx
and eax, ecx
add eax, esi
mov dword [esp + 0x40], eax
mov edx, dword [str.3D_View_Video]
mov ecx, dword [0x474440]
mov eax, 0x100
mov dword [esp + 0x6c], edx
mov dx, word [0x474444]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov eax, dword [0x47443c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
lea eax, [esp + 0x20]
mov word [esp + 0x78], dx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 0x10000
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call sub.AVIFIL32.dll_AVIFileCreateStreamA
test eax, eax
je 0x448818
mov eax, dword [esp + 0x14]
push eax
jmp 0x448834
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
call esi
cmp eax, ebx
jne 0x448852
mov ecx, dword [esp + 0x10]
push ecx
call sub.AVIFIL32.dll_AVIStreamRelease
mov edx, dword [esp + 0x14]
push edx
call sub.AVIFIL32.dll_AVIFileRelease
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call sub.AVIFIL32.dll_AVIFileExit
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9c
ret
push 0x428
push eax
mov eax, dword [esp + 0x18]
push ebx
push eax
call sub.AVIFIL32.dll_AVIStreamSetFormat
test eax, eax
je 0x448880
mov ecx, dword [esp + 0x10]
push ecx
call sub.AVIFIL32.dll_AVIStreamRelease
mov edx, dword [esp + 0x14]
push edx
call sub.AVIFIL32.dll_AVIFileRelease
push ebp
call edi
jmp 0x448839
push ebp
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x870e24]
push eax
call esi
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x4488c0
mov ecx, dword [esp + 0x10]
push ecx
call sub.AVIFIL32.dll_AVIStreamRelease
mov edx, dword [esp + 0x14]
push edx
call sub.AVIFIL32.dll_AVIFileRelease
call sub.AVIFIL32.dll_AVIFileExit
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9c
ret
mov ecx, dword [esp + 0x18]
xor esi, esi
xor ebp, ebp
cmp ecx, ebx
jle 0x448919
mov edi, eax
lea eax, [edi + 0x10000]
push 1
push eax
push edi
call fcn.00406230
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, esi
inc esi
push ebx
push ebx
push 0x10
push 0x10000
push 0xa56ec0
push 1
push eax
push ecx
call sub.AVIFIL32.dll_AVIStreamWrite
test eax, eax
jne 0x4489a8
mov eax, dword [esp + 0x18]
inc ebp
add edi, 0x20000
cmp ebp, eax
jl 0x4488ce
mov eax, dword [esp + 0x1c]
cmp dword [0x473e2c], ebx
je 0x448972
mov edx, dword [esp + 0x18]
lea ebp, [edx - 2]
cmp ebp, ebx
jle 0x448972
mov edi, ebp
shl edi, 0x11
add edi, eax
lea eax, [edi + 0x10000]
push 1
push eax
push edi
call fcn.00406230
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, esi
inc esi
push ebx
push ebx
push 0x10
push 0x10000
push 0xa56ec0
push 1
push eax
push ecx
call sub.AVIFIL32.dll_AVIStreamWrite
test eax, eax
jne 0x4489a8
dec ebp
sub edi, 0x20000
cmp ebp, ebx
jg 0x448933
mov edx, dword [0x870e24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call sub.AVIFIL32.dll_AVIStreamRelease
mov ecx, dword [esp + 0x14]
push ecx
call sub.AVIFIL32.dll_AVIFileRelease
call sub.AVIFIL32.dll_AVIFileExit
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x9c
ret
mov edx, dword [esp + 0x10]
push edx
call sub.AVIFIL32.dll_AVIStreamRelease
mov eax, dword [esp + 0x14]
push eax
call sub.AVIFIL32.dll_AVIFileRelease
mov ecx, dword [0x870e24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call sub.AVIFIL32.dll_AVIFileExit
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9c
ret