Function at 0x409035
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1000
mov eax, sym.imp.avifil32.dll_AVIFileInit
mov ecx, 0x1000
mov edx, sym.imp.avifil32.dll_AVIFileInit
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x84], edx
call 0x409035
add byte [eax], al
add byte [eax], al
pop eax
mov dword [ebp - 0xac], eax
mov eax, dword [eax]
test eax, eax
je 0x409045
leave
jmp eax
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x15]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa8]
mov dword [edx], eax
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x41]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x45]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xa4], 0x6e72656b
mov dword [ebp - 0xa0], 0x32336c65
mov dword [ebp - 0x9c], 0x6c6c642e
and dword [ebp - 0x98], 0
lea eax, [ebp - 0xa4]
push eax
call dword [ebp - 0xcc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xa4], 0x74726956
mov dword [ebp - 0xa0], 0x416c6175
mov dword [ebp - 0x9c], 0x636f6c6c
and dword [ebp - 0x98], 0
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x20]
call dword [ebp - 0xc8]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xa4], 0x74726956
mov dword [ebp - 0xa0], 0x506c6175
mov dword [ebp - 0x9c], 0x65746f72
mov dword [ebp - 0x98], 0x7463
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x20]
call dword [ebp - 0xc8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xa4], 0x74726956
mov dword [ebp - 0xa0], 0x466c6175
mov dword [ebp - 0x9c], 0x656572
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x20]
call dword [ebp - 0xc8]
mov dword [ebp - 0xc0], eax
push 0x4d
push dword [ebp - 0xb8]
lea eax, [ebp - 0x78]
push eax
call fcn.00409a0d
add esp, 0xc
push 4
push 0x1000
mov eax, dword [ebp - 0xb8]
push dword [eax + 5]
push 0
call dword [ebp - 0xc4]
mov dword [ebp - 8], eax
and dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0xb8]
push dword [eax + 1]
mov eax, dword [ebp - 0xb8]
add eax, 0x4d
push eax
call fcn.0040977a
add esp, 0x14
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x7c]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x7c]
add ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x10]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6f]
sub eax, dword [ebp - 0xb0]
push eax
push 0
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0xb0]
push eax
call fcn.004099df
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 4
movzx eax, byte [ebp - 0x78]
imul eax, eax, 0x28
push eax
push dword [ebp - 0x18]
call dword [ebp - 0x24]
movzx ax, byte [ebp - 0x78]
mov ecx, dword [ebp - 0x10]
mov word [ecx + 2], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
and dword [ebp - 0xd0], 0
jmp 0x40924f
mov eax, dword [ebp - 0xd0]
inc eax
mov dword [ebp - 0xd0], eax
movzx eax, byte [ebp - 0x78]
cmp dword [ebp - 0xd0], eax
je 0x409320
push 0x28
push 0
lea eax, [ebp - 0xf8]
push eax
call fcn.004099df
add esp, 0xc
mov eax, dword [ebp - 0xd0]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax + 0x18]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd0]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax + 0x14]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xd0]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax + 0x10]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xd0]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax + 0xc]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xd0]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax + 8]
mov dword [ebp - 0xf0], eax
push 8
mov eax, dword [ebp - 0xd0]
imul eax, eax, 0x1c
add eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00409a0d
add esp, 0xc
push 0x28
lea eax, [ebp - 0xf8]
push eax
push dword [ebp - 4]
call fcn.00409a0d
add esp, 0xc
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x409242
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
and dword [ebp - 0xfc], 0
jmp 0x409343
mov eax, dword [ebp - 0xfc]
inc eax
mov dword [ebp - 0xfc], eax
movzx eax, byte [ebp - 0x78]
cmp dword [ebp - 0xfc], eax
je 0x4093a7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
push dword [eax + 0x10]
movzx eax, byte [ebp - 0x78]
imul eax, eax, 0x1c
add eax, dword [ebp - 8]
add eax, dword [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0x100]
mov ecx, dword [ebp - 0x7c]
add ecx, dword [eax + 0xc]
push ecx
call fcn.00409a0d
add esp, 0xc
mov eax, dword [ebp - 0x100]
mov ecx, dword [ebp - 0xbc]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0xbc], ecx
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x409336
push 0x8000
push 0
push dword [ebp - 8]
call dword [ebp - 0xc0]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x7c]
lea eax, [ecx + eax + 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
add eax, 8
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x67]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x6b]
mov dword [eax], ecx
mov eax, dword [ebp - 0x80]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x5b]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x5f]
mov dword [eax], ecx
cmp dword [ebp - 0x6b], 0
je 0x409538
mov eax, dword [ebp - 0x6b]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
cmp dword [eax + 0xc], 0
je 0x409538
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x7c]
push eax
call dword [ebp - 0xcc]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x104]
cmp dword [eax], 0
je 0x40945e
mov eax, dword [ebp - 0x104]
mov eax, dword [eax]
mov dword [ebp - 0x144], eax
jmp 0x40946d
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x144]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x10c], eax
xor eax, eax
inc eax
je 0x409524
mov eax, dword [ebp - 0x110]
mov eax, dword [eax]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x4094b0
jmp 0x409524
mov eax, dword [ebp - 0x114]
and eax, 0x80000000
je 0x4094df
mov eax, dword [ebp - 0x114]
and eax, 0x7fffffff
push eax
push dword [ebp - 0x108]
call dword [ebp - 0xc8]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], eax
jmp 0x409501
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x114]
lea eax, [ecx + eax + 2]
push eax
push dword [ebp - 0x108]
call dword [ebp - 0xc8]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x110]
add eax, 4
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x10c]
add eax, 4
mov dword [ebp - 0x10c], eax
jmp 0x40948e
mov eax, dword [ebp - 0x104]
add eax, 0x14
mov dword [ebp - 0x104], eax
jmp 0x40941a
cmp dword [ebp - 0x57], 0
je 0x409648
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x7c]
je 0x409648
mov eax, dword [ebp - 0x57]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x53]
mov dword [ebp - 0x118], eax
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x11c]
cmp dword [eax + 4], 0
je 0x409648
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x118]
jae 0x409648
mov dword [ebp - 0x124], 8
jmp 0x4095a9
mov eax, dword [ebp - 0x124]
inc eax
inc eax
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [eax + 4]
jae 0x409619
mov eax, dword [ebp - 0x11c]
add eax, dword [ebp - 0x124]
mov ax, word [eax]
mov word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose], ax
movzx eax, word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose]
sar eax, 0xc
cmp eax, 3
jne 0x409617
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x7c]
add ecx, dword [eax]
movzx eax, word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose]
and eax, 0xfff
add ecx, eax
mov dword [ebp - 0x12c], ecx
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax]
sub eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x12c]
mov dword [ecx], eax
jmp 0x40959b
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
add ecx, dword [eax + 4]
mov dword [ebp - 0x120], ecx
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x11c]
add ecx, dword [eax + 4]
mov dword [ebp - 0x11c], ecx
jmp 0x40956d
cmp dword [ebp - 0x4f], 0
je 0x4096a7
mov eax, dword [ebp - 0x4f]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0x20], 0
je 0x4096a7
cmp dword [ebp - 0x4b], 0x90
jne 0x4096a7
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x134], eax
xor eax, eax
inc eax
je 0x4096a7
mov eax, dword [ebp - 0x134]
mov eax, dword [eax]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
jne 0x40969c
jmp 0x4096a7
mov eax, dword [ebp - 0x138]
mov byte [eax], 0x90
jmp 0x40967e
cmp dword [ebp - 0x43], 0
je 0x4096b8
mov eax, dword [ebp - 0x43]
add eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x47]
mov dword [eax], ecx
cmp dword [ebp - 0x3f], 0
je 0x40975c
mov eax, dword [ebp - 0x3f]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x140], eax
and dword [ebp - 0x13c], 0
xor eax, eax
inc eax
je 0x40971e
mov eax, dword [ebp - 0x140]
cmp dword [eax], 0
jne 0x4096e7
jmp 0x40971e
mov eax, dword [ebp - 0x3b]
add eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x140]
mov edx, dword [edx]
mov dword [eax + ecx], edx
mov eax, dword [ebp - 0x140]
add eax, 4
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x13c]
add eax, 4
mov dword [ebp - 0x13c], eax
jmp 0x4096d5
mov eax, dword [ebp - 0x3b]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x140], eax
xor eax, eax
inc eax
je 0x40975c
mov eax, dword [ebp - 0x140]
cmp dword [eax], 0
jne 0x40973c
jmp 0x40975c
push 0
push 1
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x140]
call dword [eax]
mov eax, dword [ebp - 0x140]
add eax, 4
mov dword [ebp - 0x140], eax
jmp 0x40972a
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
movzx eax, byte [ebp - 0x78]
imul eax, eax, 0x28
push eax
push dword [ebp - 0x18]
call dword [ebp - 0x24]
mov eax, dword [ebp - 0x63]
add eax, dword [ebp - 0x7c]
leave
jmp eax