Function at 0x4226b0
Capabilities:
Check os version
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56f034
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x5b16b0]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
push 0x2048
call fcn.0047b51b
mov ebx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebx + 0x44]
xor esi, esi
add eax, 0xffffffff
add esp, 4
cmp dword [ebx + 0x64], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x12], 1
mov byte [ebx + 0x2d], 0
mov byte [ebx + 0x70], 0
mov byte [esp + 0x13], 0
jne 0x422730
mov byte [esp + 0x13], 1
call fcn.0042cba0
mov dword [esp + 0x40], eax
emms
mov edx, dword [ebx + 0x64]
cmp edx, esi
mov dword [esp + 0x34], edx
jl 0x42332b
cmp edx, dword [ebx + 0x44]
jge 0x42332b
mov ecx, dword [ebx + 0x40]
mov eax, edx
imul eax, eax, 0x8c
add ecx, eax
mov ecx, dword [ecx + 0xc]
mov dword [ebx + 0x118], ecx
cmp edx, dword [ebx + 0x44]
mov dword [esp + 0x6c], edx
jge 0x42332b
mov ecx, dword [ebx + 0x40]
add ecx, eax
add ecx, 0x28
push ecx
lea ecx, [esp + 0x48]
call fcn.0040de00
mov dword [esp + 0x100], esi
mov eax, dword [esp + 0x44]
cmp dword [eax - 4], 1
jle 0x4227aa
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x48]
call fcn.00404ae0
mov eax, dword [esp + 0x44]
push eax
mov esi, edi
call fcn.004327c0
add esp, 4
test eax, eax
je 0x4233d0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x2c], eax
mov al, byte [edi + 0xa]
xor esi, esi
test al, al
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], esi
jne 0x422942
push 0x448
call fcn.0047b51b
mov esi, eax
add esp, 4
mov dword [esp + 0x64], esi
test esi, esi
mov byte [esp + 0x100], 1
je 0x422813
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
push edx
push eax
push esi
call fcn.004326d0
mov dword [esi], vtable.CMpeg4Decoder.0
jmp 0x422815
xor esi, esi
fild dword [esp + 0x2c]
mov byte [esp + 0x100], 0
fnstcw word [esp + 0x18]
fimul dword [esp + 0x20]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fmul qword [0x578008]
fmul qword [0x577fa8]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fldcw word [esp + 0x1c]
fistp qword [esp + 0x64]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x48], ecx
fldcw word [esp + 0x18]
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x48]
push eax
call fcn.0047b54b
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x18]
cdq
idiv dword [edi + 0x1c]
mov ecx, dword [esp + 0x38]
add esp, 4
cmp ecx, dword [ebx + 0x64]
mov dword [ebx + 0x12c], eax
jne 0x422899
mov edx, edi
mov edi, dword [ebx + 0x68]
push 0
call fcn.00432980
add esp, 4
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
lea eax, [ebx + 0x6c]
mov ebx, dword [esp + 0x40]
push edx
mov dword [esp + 0x3c], eax
call fcn.0042e580
mov ebx, dword [ebp + 8]
xor eax, eax
cmp byte [ebx + 0x2c], al
mov dword [esp + 0x3c], eax
je 0x423360
cmp byte [ebx + 0x2d], 0
je 0x4229bb
test eax, eax
je 0x423284
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x80], eax
sar eax, 1
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
push edx
lea eax, [esp + 0x74]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x44]
push eax
mov dword [esp + 0x98], 1
call fcn.0042e600
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x423284
cmp al, 1
jne 0x42285f
push 0x148
call fcn.0047b51b
mov edx, eax
add esp, 4
cmp edx, esi
je 0x42296e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov esi, edx
call fcn.00433350
jmp 0x422970
xor eax, eax
fild dword [esp + 0x2c]
mov dword [esp + 0x28], eax
fnstcw word [esp + 0x18]
fimul dword [esp + 0x20]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fmul qword [0x578008]
fmul qword [0x5a3940]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fldcw word [esp + 0x1c]
fistp qword [esp + 0x64]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x48], edx
fldcw word [esp + 0x18]
jmp 0x422863
cmp byte [ebx + 0x2e], 0
je 0x422a7e
cmp byte [ebx + 0x2f], 0
je 0x422a0a
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov byte [ebx + 0x2f], 0
call fcn.00432840
test eax, eax
je 0x423360
test byte [esi + 0x2038], 0x18
jne 0x422a06
mov eax, dword [esi + 0x203a]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, edi
push eax
call edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x423284
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x80], eax
sar eax, 1
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
push edx
lea eax, [esp + 0x74]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x44]
push eax
mov dword [esp + 0x98], 1
call fcn.0042e600
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x423284
cmp byte [ebx + 0x30], 0
je 0x422ac6
mov ecx, dword [ebx + 0x28]
sub dword [ebx + 0x124], ecx
mov byte [ebx + 0x30], 0
jns 0x422a9d
mov dword [ebx + 0x124], 0
mov edi, dword [ebx + 0x124]
sub edi, dword [ebx + 0x118]
mov esi, dword [esp + 0x24]
imul edi, edi, 0x3e8
push 1
mov edx, esi
call fcn.00432980
add esp, 4
mov byte [esp + 0x12], 1
jmp 0x422aca
mov esi, dword [esp + 0x24]
cmp byte [ebx + 0x31], 0
je 0x422b02
mov edx, dword [ebx + 0x28]
add dword [ebx + 0x124], edx
mov eax, dword [ebx + 0x124]
sub eax, dword [ebx + 0x118]
push 0
imul eax, eax, 0x3e8
mov edx, esi
mov edi, eax
mov byte [ebx + 0x31], 0
call fcn.00432980
add esp, 4
mov byte [esp + 0x12], 1
xor ecx, ecx
cmp dword [ebx + 0x128], ecx
je 0x422d2d
mov edx, dword [ebx + 0x44]
xor eax, eax
cmp edx, ecx
mov dword [ebx + 0x128], ecx
mov byte [esp + 0x12], 1
mov dword [esp + 0x34], eax
jle 0x422d24
mov dword [esp + 0x4c], ecx
jmp 0x422b35
mov edx, dword [ebx + 0x44]
add edx, 0xffffffff
cmp eax, edx
jne 0x422b41
mov byte [esp + 0x13], 1
test ecx, ecx
jl 0x42332b
cmp eax, dword [ebx + 0x44]
jge 0x42332b
mov edi, dword [ebx + 0x40]
mov edx, dword [ebx + 0x124]
add edi, ecx
mov ecx, dword [edi + 0xc]
cmp edx, ecx
mov dword [esp + 0x1c], edi
jl 0x422b75
mov edx, dword [edi + 0x10]
add edx, ecx
cmp dword [ebx + 0x124], edx
jl 0x422b94
mov ecx, dword [esp + 0x4c]
add eax, 1
add ecx, 0x8c
cmp eax, dword [ebx + 0x44]
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], ecx
jl 0x422b32
jmp 0x422d24
cmp dword [esp + 0x6c], eax
je 0x422cfc
mov edx, dword [ebx + 0x44]
mov dword [ebx + 0x64], eax
mov ecx, dword [edi + 0xc]
add edx, 0xffffffff
cmp eax, edx
mov dword [esp + 0x6c], eax
mov dword [ebx + 0x118], ecx
je 0x422bbd
mov byte [esp + 0x13], 0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x28
push edi
lea ecx, [esp + 0x54]
mov dword [esi], 0xffffffff
call fcn.0040de00
mov byte [esp + 0x100], 2
mov eax, dword [esp + 0x50]
cmp dword [eax - 4], 1
jle 0x422bfc
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x54]
call fcn.00404ae0
mov eax, dword [esp + 0x50]
push eax
call fcn.004327c0
add esp, 4
test eax, eax
je 0x4232fc
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ebx
je 0x422c2b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov al, byte [esi + 0xa]
test al, al
jne 0x422c7d
push 0x448
call fcn.0047b51b
mov esi, eax
add esp, 4
mov dword [esp + 0x5c], esi
test esi, esi
mov byte [esp + 0x100], 3
je 0x422c6d
push ebx
push edi
push esi
call fcn.004326d0
mov dword [esi], vtable.CMpeg4Decoder.0
mov byte [esp + 0x100], 2
mov dword [esp + 0x28], esi
jmp 0x422cb3
xor esi, esi
mov byte [esp + 0x100], 2
mov dword [esp + 0x28], esi
jmp 0x422cb3
cmp al, 1
jne 0x422cab
push 0x148
call fcn.0047b51b
mov esi, eax
add esp, 4
test esi, esi
je 0x422ca3
mov eax, ebx
mov ecx, edi
call fcn.00433350
mov dword [esp + 0x28], eax
jmp 0x422cb3
xor eax, eax
mov dword [esp + 0x28], eax
jmp 0x422cb3
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x40]
push ecx
call fcn.0042e580
mov byte [esp + 0x100], 0
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422cf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov eax, dword [ebx + 0x124]
mov byte [ebx + 0x2c], 1
sub eax, dword [edi + 0xc]
push 0
imul eax, eax, 0x3e8
mov edx, esi
mov edi, eax
mov dword [ebx + 0x68], eax
call fcn.00432980
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, dword [ebx + 0x44]
je 0x423330
mov eax, dword [ebx + 0x24]
cmp eax, 1
jne 0x422e74
mov edi, dword [esp + 0x18]
call fcn.004328e0
test eax, eax
je 0x423360
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 0x2038]
shr cl, 3
and cl, 3
jne 0x422daa
cmp byte [esp + 0x12], 0
mov ecx, dword [eax + 0x203e]
je 0x422d7c
mov edx, ecx
sub edx, ecx
mov byte [esp + 0x12], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], edx
jmp 0x422d8a
mov edx, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
sub ecx, edx
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x203a]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x1c]
push eax
call edx
mov dword [esp + 0x3c], eax
jmp 0x422f7a
cmp cl, 1
jne 0x422f7a
cmp dword [ebx + 0x130], 0
je 0x423284
cmp dword [esp + 0x58], 0
jne 0x422dd8
push 0x2800
call fcn.0047b54b
add esp, 4
mov dword [esp + 0x58], eax
cmp dword [esp + 0x60], 0
jne 0x422e03
push 0x38
call fcn.0047b51b
add esp, 4
mov esi, eax
push 1
push 0x3e80
mov eax, 0x10
mov dword [esp + 0x68], esi
call fcn.00432f70
add esp, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x203a]
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x5c]
call fcn.00432fc0
add esp, 4
cmp dword [esp + 0x54], 0
mov edi, eax
jne 0x422e56
push 0x188
call fcn.0047b51b
mov esi, eax
add esp, 4
push edi
mov edx, 1
mov ecx, 0x10
mov eax, 0x3e80
mov dword [esp + 0x58], esi
call fcn.00431790
add esp, 4
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
push 0x2800
push edx
call fcn.00431880
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x423284
jle 0x422f0d
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x422f7a
jmp 0x422e94
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
call fcn.00432840
test eax, eax
je 0x423360
mov edx, dword [esp + 0x24]
test byte [edx + 0x2038], 0x18
jne 0x422efb
cmp byte [esp + 0x12], 0
je 0x422ecc
mov ecx, dword [edx + 0x203e]
mov byte [esp + 0x12], 0
mov eax, ecx
mov dword [esp + 0x30], ecx
jmp 0x422eda
mov eax, dword [edx + 0x203e]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov edx, dword [edx + 0x203a]
sub eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esp + 0x1c]
push edx
call eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [ebx + 0x24]
mov dword [esp + 0x1c], eax
jl 0x422e90
jmp 0x422f7a
mov edi, dword [esp + 0x18]
call fcn.00432840
test eax, eax
je 0x422f7a
mov al, byte [esi + 0x2038]
shr al, 3
and al, 3
jne 0x422f72
cmp byte [esp + 0x12], 0
mov eax, dword [esi + 0x203e]
je 0x422f47
mov ecx, eax
mov dword [esp + 0x30], ecx
sub ecx, eax
mov byte [esp + 0x12], 0
mov dword [esp + 0x14], ecx
jmp 0x422f55
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], eax
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x203a]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x1c]
push eax
call edx
mov dword [esp + 0x3c], eax
jmp 0x422f7a
cmp al, 1
je 0x423284
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x423360
mov ecx, dword [eax]
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa0], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xac], eax
sar eax, 1
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov eax, dword [ebx + 0x24]
cmp eax, 1
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xbc], 1
jne 0x42303a
cmp dword [ebx + 0x130], 0
je 0x42303c
mov eax, dword [esp + 0x54]
test eax, eax
je 0x42303c
mov eax, dword [eax + 0x170]
cmp eax, 9
jle 0x42300a
mov eax, 0x14
sub dword [esp + 0x14], eax
jmp 0x42304f
cmp eax, 8
jle 0x42301a
mov eax, 0xa
sub dword [esp + 0x14], eax
jmp 0x42304f
cmp eax, 7
jle 0x42302a
mov eax, 3
sub dword [esp + 0x14], eax
jmp 0x42304f
xor edx, edx
cmp eax, 6
setg dl
mov eax, edx
sub dword [esp + 0x14], eax
jmp 0x42304f
jle 0x423043
sub dword [esp + 0x14], 2
jmp 0x42304f
mov eax, dword [ebx + 0x20]
imul eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
jge 0x42305e
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.0042e600
mov eax, dword [ebx + 0x120]
test al, 1
je 0x423284
mov ecx, dword [esp + 0x48]
and eax, 0xfffffffe
push ecx
mov dword [ebx + 0x120], eax
call fcn.0047b54b
mov esi, dword [esp + 0x30]
add esp, 4
cmp esi, 0x160
mov dword [esp + 0x34], eax
jle 0x423297
cmp dword [esp + 0x20], 0x120
jg 0x423297
push 0x2c
lea edx, [esp + 0xcc]
push 0
push edx
call fcn.004a1c90
mov ebx, dword [esp + 0x2c]
add esp, 0xc
add ebx, ebx
push esi
push 1
lea edi, [esp + 0xd0]
mov dword [esp + 0x24], ebx
call fcn.00432420
mov eax, edi
push eax
mov eax, dword [esp + 0x2c]
mov ecx, esi
lea ebx, [esp + 0xa8]
call fcn.00438580
add esp, 0xc
push 0xc
mov dword [esp + 0xec], 1
call fcn.0047b51b
mov edi, eax
add esp, 4
mov dword [esp + 0x5c], edi
test edi, edi
mov byte [esp + 0x100], 4
je 0x423148
mov ecx, dword [esp + 0x1c]
push 0x1e
push 8
push esi
push edi
call fcn.00432b00
mov dword [edi], vtable.CJpegEncoder.0
jmp 0x42314a
xor edi, edi
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
push 0
push eax
mov byte [esp + 0x108], 0
mov edx, dword [edi]
mov edx, dword [edx + 8]
push ecx
lea eax, [esp + 0xd4]
push eax
mov ecx, edi
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x42318d
movzx ecx, byte [eax - 1]
sub eax, ecx
push eax
call fcn.004994ab
add esp, 4
mov ebx, dword [ebp + 8]
call fcn.0047c271
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x423356
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
push ecx
mov byte [esp + 0x104], 6
mov ecx, esp
mov dword [esp + 0x60], esp
push str.playback_
call fcn.0040de00
lea ecx, [esp + 0x68]
push ecx
push ebx
call fcn.004223e0
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x104], 7
call fcn.00404a60
mov byte [esp + 0x100], 6
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423212
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4c]
push 0x595828
push ecx
call fcn.0049c48e
mov esi, eax
add esp, 8
test esi, esi
je 0x423245
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
push esi
push edx
push 1
push eax
call fcn.0049ccd1
push esi
call fcn.0049c78c
add esp, 0x14
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0047b546
mov edx, dword [edi]
mov eax, dword [edx]
add esp, 4
push 1
mov ecx, edi
call eax
mov byte [esp + 0x100], 0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423284
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebx + 0x2c], 0
je 0x423360
mov eax, dword [esp + 0x3c]
jmp 0x4228c4
push 0xc
call fcn.0047b51b
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
mov byte [esp + 0x100], 5
je 0x4232cc
mov ecx, dword [esp + 0x20]
push 0x1e
push 8
push esi
push edi
call fcn.00432b00
mov dword [edi], vtable.CJpegEncoder.0
mov ecx, edi
jmp 0x4232ce
xor ecx, ecx
mov eax, dword [esp + 0x48]
push 0
push eax
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x108], 0
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push eax
lea eax, [esp + 0xa8]
push eax
mov edi, ecx
call edx
mov dword [esp + 0x1c], eax
jmp 0x423190
mov byte [esp + 0x100], 0
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x13], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423373
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x423373
call fcn.0047dc2b
add eax, 0xffffffff
js 0x42332b
cmp eax, dword [ebx + 0x44]
jge 0x42332b
imul eax, eax, 0x8c
add eax, dword [ebx + 0x40]
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 0xc]
cmp dword [ebx + 0x124], ecx
setg byte [esp + 0x13]
jmp 0x423373
push 0x80004005
call fcn.00404150
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x44]
call fcn.0042f280
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x423391
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edi, dword [esp + 0x54]
test edi, edi
je 0x4233a7
call fcn.00431800
push edi
call fcn.0047b546
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4233b8
push eax
call fcn.0047b546
add esp, 4
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4233c9
push eax
call fcn.0047b546
add esp, 4
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x24]
push edi
call fcn.0047b546
add esp, 4
cmp byte [esp + 0x13], 0
mov byte [ebx + 0x2c], 0
mov byte [ebx + 0x2d], 0
mov byte [ebx + 0x2e], 0
mov dword [ebx + 0x34], 1
mov dword [ebx + 0x12c], 0
je 0x423401
mov byte [ebx + 0x70], 1
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [ebx + 0x32], 1
je 0x423416
push eax
call fcn.0047b546
add esp, 4
mov dword [esp + 0x100], 0xffffffff
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423441
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4