Function at 0x4a4950
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x188
mov eax, dword [0x53ffd0]
xor eax, dword [esp + 0x188]
push esi
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x194]
mov esi, ecx
mov dword [esi + 0x7a3818], eax
mov ecx, dword [str.DVD2AVIProjectFile]
mov edx, dword [0x50e0fc]
mov eax, dword [0x50e100]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x50e104]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x190]
mov dword [esp + 0x64], edx
mov dx, word [0x50e108]
mov dword [esp + 0x68], eax
mov al, byte [0x50e10a]
push 0x50e0f4
push ecx
mov word [esp + 0x78], dx
mov byte [esp + 0x7a], al
mov dword [esp + 0x4c], 1
mov dword [esp + 0x54], 0x100
call fcn.004ba839
add esp, 8
test eax, eax
mov dword [esi + 0x7a37f0], eax
je 0x4a49f8
push eax
lea edx, [esp + 0x78]
push 0x13
push edx
call fcn.004ba0db
add esp, 0xc
test eax, eax
jne 0x4a49ff
xor eax, eax
jmp 0x4a57ed
push ebx
push ebp
push edi
lea edi, [esp + 0x6c]
lea eax, [esp + 0x80]
lea ecx, [ecx]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x4a4a38
test cl, cl
je 0x4a4a34
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x4a4a38
add eax, 2
add edi, 2
test cl, cl
jne 0x4a4a10
xor eax, eax
jmp 0x4a4a3d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a4a48
xor eax, eax
jmp 0x4a57ea
lea eax, [esp + 0x44]
push eax
push 0xf003f
push 0
push str.SoftwareVFPlugin
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a4ab5
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x58]
push eax
push 0
push str.DVD2AVI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x94]
push 0x5c
push edx
call fcn.004ba7b0
inc eax
push str.OpenDVD.dll
push eax
call fcn.004ba749
mov eax, dword [esp + 0x54]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [esi + 0x7a37ec], eax
je 0x4a4adf
push str.BufferOp
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 0x848], eax
mov dword [esp + 0x10], 0
jmp 0x4a4af0
push 0x104
call fcn.004d2f95
mov edx, dword [esp + 0x14]
mov dword [esi + edx*4 + 0xc4c], eax
mov eax, dword [esp + 0x14]
add esp, 4
inc eax
cmp eax, 0x100
mov dword [esp + 0x10], eax
jb 0x4a4af0
mov eax, dword [esi + 0x7a37f0]
lea edi, [esi + 0x824]
push edi
push 0x50e0bc
push eax
call fcn.004ba6ff
add esp, 0xc
cmp eax, 1
jne 0x4a4a41
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4a4be3
lea ebx, [ebx]
mov edx, dword [esi + 0x7a37f0]
lea ecx, [esp + 0x14]
push ecx
push 0x50e0b8
push edx
call fcn.004ba6ff
add esp, 0xc
cmp eax, 1
jne 0x4a4a41
mov eax, dword [esi + 0x7a37f0]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
mov ebp, dword [esp + 0x10]
push eax
inc ecx
sub edx, ebp
mov eax, dword [esi + edx*4 + 0xc4c]
push ecx
push eax
call fcn.004ba0db
mov ecx, dword [edi]
sub ecx, dword [esp + 0x1c]
mov edx, dword [esi + ecx*4 + 0xc4c]
push 0x8000
push edx
call fcn.004ba655
mov edx, dword [esp + 0x24]
mov ecx, dword [edi]
sub ecx, edx
mov dword [esi + ecx*4 + 0x84c], eax
mov edx, dword [edi]
mov ecx, dword [esp + 0x24]
sub edx, ecx
mov eax, dword [esi + edx*4 + 0x84c]
add esp, 0x14
cmp eax, 0xffffffff
je 0x4a4a41
mov eax, ecx
dec eax
mov dword [esp + 0x10], eax
jne 0x4a4b50
mov ebx, dword [esi + 0x7a37f0]
lea eax, [esi + 0x844]
push eax
lea ebp, [esi + 0x840]
push ebp
lea eax, [esi + 0x830]
push eax
push str._nStream_Type_d__X__X_n
push 0x100
lea edi, [esp + 0xa8]
call fcn.004a2300
add esp, 4
push eax
call fcn.004ba33a
add esp, 0x14
cmp eax, 3
jne 0x4a4a41
cmp dword [ebp], 0
jne 0x4a4c45
mov eax, dword [esi + 0x844]
test eax, eax
jne 0x4a4c45
mov dword [esi + 0x83c], 0
jmp 0x4a4c4f
mov dword [esi + 0x83c], 1
mov ebx, dword [esi + 0x7a37f0]
lea ebp, [esi + 0x82c]
push ebp
push str.iDCT_Algorithm_d_n
push 0x100
lea edi, [esp + 0xa0]
call fcn.004a2300
add esp, 4
push eax
call fcn.004ba33a
add esp, 0xc
cmp eax, 1
jne 0x4a4a41
mov eax, dword [ebp]
sub eax, 2
je 0x4a4ca3
dec eax
je 0x4a4c9c
dec eax
jne 0x4a4cb3
call fcn.004a7860
jmp 0x4a4cb3
call fcn.004a7d30
jmp 0x4a4cb3
mov eax, dword [0x542a48]
test eax, eax
jne 0x4a4cb3
mov dword [ebp], 1
mov ecx, dword [esi + 0x84c]
xor ebx, ebx
push ebx
push ebx
push ebx
push ecx
mov dword [esi + 0x820], ebx
call fcn.004b9f6a
add esp, 0x10
mov ecx, esi
call fcn.004a2c20
mov ecx, esi
call fcn.004a2e40
push 0x20
mov ecx, esi
call fcn.004a2dc0
cmp eax, 0x1b3
jne 0x4a4cd4
mov ecx, esi
call fcn.004a4600
mov eax, dword [esi + 0x1594]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
mov ecx, eax
mov eax, dword [esi + 0x15a4]
sar ecx, 4
cmp eax, ebx
mov eax, dword [esi + 0x1598]
mov dword [esi + 0x159c], ecx
je 0x4a4d2a
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
sar eax, 4
jmp 0x4a4d38
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 1
mov edx, dword [esi + 0x15a8]
mov dword [esi + 0x15a0], eax
shl ecx, 4
shl eax, 4
cmp edx, 3
mov dword [esi + 0x157c], ecx
mov dword [esi + 0x1580], eax
je 0x4a4d5d
sar ecx, 1
cmp edx, 1
mov dword [esi + 0x1584], ecx
jne 0x4a4d6a
sar eax, 1
mov dword [esi + 0x1588], eax
mov edx, dword [edx*4 + 0x50dfb0]
mov dword [esi + 0x158c], edx
mov dword [esp + 0x10], ebx
push 0xc0
call fcn.004d2f95
mov ecx, dword [esp + 0x14]
mov dword [esi + ecx*4 + 0x1490], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + ecx*4 + 0x1490]
mov edx, eax
add esp, 4
and edx, 0x8000003f
jns 0x4a4db3
dec edx
or edx, 0xffffffc0
inc edx
sub eax, edx
add eax, 0x40
mov dword [esi + ecx*4 + 0x1470], eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 8
mov dword [esp + 0x10], eax
jb 0x4a4d81
push 0x240
call fcn.004d2f95
mov ecx, eax
add esp, 4
and ecx, 0x8000003f
mov dword [esi + 0x146c], eax
jns 0x4a4def
dec ecx
or ecx, 0xffffffc0
inc ecx
sub eax, ecx
add eax, 0x40
mov dword [esi + 0x1468], eax
xor eax, eax
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4a4e13
mov edi, dword [esi + 0x1580]
imul edi, dword [esi + 0x157c]
jmp 0x4a4e20
mov edi, dword [esi + 0x1588]
imul edi, dword [esi + 0x1584]
push edi
call fcn.004d2f95
mov edx, dword [esp + 0x14]
push edi
mov dword [esi + edx*4 + 0x14bc], eax
call fcn.004d2f95
mov ecx, dword [esp + 0x18]
push edi
mov dword [esi + ecx*4 + 0x14c8], eax
call fcn.004d2f95
mov edx, dword [esp + 0x1c]
mov dword [esi + edx*4 + 0x14d4], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jb 0x4a4e00
mov ebx, dword [esi + 0x7a37f0]
lea eax, [esp + 0x10]
push eax
push str.YUVRGB_Scale_d_n
push 0x100
lea edi, [esp + 0xa0]
call fcn.004a2300
add esp, 4
push eax
call fcn.004ba33a
add esp, 0xc
cmp eax, 1
jne 0x4a4a41
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, eax
je 0x4a4eef
mov eax, 0x10002543
mov dword [esi + 0x1508], eax
mov dword [esi + 0x150c], eax
mov eax, 0x100010
mov dword [esi + 0x1510], eax
mov dword [esi + 0x1514], eax
mov eax, 0x408d
mov dword [esi + 0x1520], eax
mov dword [esi + 0x1524], eax
mov eax, 0xf377e5fc
mov dword [esi + 0x1528], eax
mov dword [esi + 0x152c], eax
mov eax, 0x3313
jmp 0x4a4f33
mov dword [esi + 0x1510], eax
mov dword [esi + 0x1514], eax
mov eax, 0x38b4
mov dword [esi + 0x1520], eax
mov dword [esi + 0x1524], eax
mov eax, 0xf4fde926
mov ecx, 0x10002000
mov dword [esi + 0x1528], eax
mov dword [esi + 0x152c], eax
mov dword [esi + 0x1508], ecx
mov dword [esi + 0x150c], ecx
mov eax, 0x2cdd
mov ebx, dword [esi + 0x7a37f0]
push 0x100
lea edi, [esp + 0x98]
mov dword [esi + 0x1518], eax
mov dword [esi + 0x151c], eax
call fcn.004a2300
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov edi, eax
push str.Luminance_d__d_n
push edi
call fcn.004ba33a
add esp, 0x14
cmp eax, 2
je 0x4a4fb2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.Luminance_Filter_d__d_n
push edi
call fcn.004ba33a
add esp, 0x10
cmp eax, 2
jne 0x4a4a41
mov dword [esp + 0x10], 0x80
mov dword [esp + 0x14], 0
mov dword [esi + 0x834], 0
jmp 0x4a502f
mov eax, dword [esp + 0x10]
cmp eax, 0x80
mov edi, dword [esp + 0x14]
jne 0x4a4fcd
test edi, edi
jne 0x4a4fcd
mov dword [esi + 0x834], edi
jmp 0x4a502f
push 0x10001
push 0x10001
push 0
push eax
mov dword [esi + 0x834], 1
call fcn.004b78b0
push 0x10001
push 0x10001
push 0
push edi
mov dword [esi + 0x1538], eax
mov dword [esi + 0x153c], edx
call fcn.004b78b0
mov dword [esi + 0x1534], edx
mov edx, dword [esi + 0x1580]
imul edx, dword [esi + 0x157c]
push edx
mov dword [esi + 0x1530], eax
call fcn.004d2f95
add esp, 4
mov dword [esi + 0x14fc], eax
mov ebx, dword [esi + 0x7a37f0]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x78]
push edx
push str.Picture_Size_d__d__d__d__d__d_n
push 0x100
lea edi, [esp + 0xb4]
call fcn.004a2300
add esp, 4
push eax
call fcn.004ba33a
add esp, 0x20
cmp eax, 6
jne 0x4a4a41
mov edx, dword [esi + 0x157c]
mov eax, dword [esi + 0x1580]
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
xor ecx, ecx
cmp ebx, ecx
mov dword [esi + 0x838], ecx
mov dword [esi + 0x156c], edx
mov dword [esi + 0x1574], edx
mov dword [esi + 0x1570], eax
mov dword [esi + 0x1578], eax
mov dword [esi + 0x1560], ecx
mov dword [esi + 0x155c], ecx
mov dword [esi + 0x1558], ecx
jne 0x4a50da
cmp dword [esp + 0x48], ecx
jne 0x4a50da
cmp ebp, ecx
jne 0x4a50da
cmp edi, ecx
je 0x4a5122
mov ecx, edx
sub ecx, ebp
sub ecx, edi
mov edi, eax
sub edi, ebx
sub edi, dword [esp + 0x48]
mov dword [esi + 0x156c], ecx
mov dword [esi + 0x1574], ecx
mov dword [esi + 0x1570], edi
mov dword [esi + 0x1578], edi
mov ecx, edx
imul ecx, ebx
mov edi, edx
sar edi, 1
imul edi, ebx
mov dword [esi + 0x1558], ecx
add ecx, ebp
mov dword [esi + 0x1560], ecx
mov dword [esi + 0x155c], edi
xor ecx, ecx
mov edi, dword [esp + 0x54]
cmp edi, ecx
mov ebx, dword [esp + 0x5c]
jne 0x4a5132
cmp ebx, ecx
je 0x4a5158
mov ebp, dword [esi + 0x1574]
mov ecx, dword [esi + 0x1578]
sub ebp, edi
sub ecx, ebx
mov dword [esi + 0x838], 1
mov dword [esi + 0x1574], ebp
mov dword [esi + 0x1578], ecx
mov ecx, dword [esi + 0x7a3818]
neg ecx
sbb ecx, ecx
add ecx, 3
imul ecx, dword [esi + 0x156c]
mov dword [esi + 0x1564], ecx
add ecx, ecx
mov dword [esi + 0x1568], ecx
mov ecx, dword [esi + 0x1570]
imul ecx, edx
mov dword [esi + 0x1554], ecx
mov ecx, eax
sar ecx, 1
sub ecx, 2
mov dword [esi + 0x1544], ecx
mov ecx, eax
imul eax, edx
sar ecx, 2
sub ecx, 2
mov dword [esi + 0x1548], ecx
mov ecx, edx
sar ecx, 1
mov dword [esi + 0x1540], ecx
add ecx, 0xfffffff8
mov dword [esi + 0x1550], ecx
lea ecx, [edx + edx]
cdq
sub eax, edx
sar eax, 1
push eax
mov dword [esi + 0x154c], ecx
call fcn.004d2f95
mov dword [esi + 0x14ec], eax
mov eax, dword [esi + 0x1580]
imul eax, dword [esi + 0x157c]
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.004d2f95
mov edx, dword [esi + 0x1580]
imul edx, dword [esi + 0x157c]
push edx
mov dword [esi + 0x14f0], eax
call fcn.004d2f95
mov dword [esi + 0x14f4], eax
mov eax, dword [esi + 0x1580]
imul eax, dword [esi + 0x157c]
push eax
call fcn.004d2f95
mov ecx, dword [esi + 0x1570]
imul ecx, dword [esi + 0x156c]
shl ecx, 2
push ecx
mov dword [esi + 0x14f8], eax
call fcn.004d2f95
mov ebx, dword [esi + 0x7a37f0]
add esp, 0x14
mov dword [esi + 0x1500], eax
lea eax, [esi + 0x828]
push eax
push str.Field_Operation_d_n
push 0x100
lea edi, [esp + 0xa0]
call fcn.004a2300
add esp, 4
push eax
call fcn.004ba33a
add esp, 0xc
cmp eax, 1
jne 0x4a4a41
mov ebx, dword [esi + 0x7a37f0]
lea edx, [esi + 0x7a37f4]
push edx
push str.Frame_Rate_d_n
push 0x100
lea edi, [esp + 0xa0]
call fcn.004a2300
add esp, 4
push eax
call fcn.004ba33a
add esp, 0xc
cmp eax, 1
jne 0x4a4a41
mov ebx, dword [esi + 0x7a37f0]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push str.Location_d__X__d__X_n
push 0x100
lea edi, [esp + 0xac]
call fcn.004a2300
add esp, 4
push eax
call fcn.004ba33a
add esp, 0x18
cmp eax, 4
jne 0x4a4a41
mov edx, dword [esi + 0x7a37f0]
xor edi, edi
lea ecx, [esp + 0x4c]
push ecx
push 0x50e0bc
push edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], edi
call fcn.004ba6ff
add esp, 0xc
cmp eax, 1
jne 0x4a5601
lea ebp, [esi + 0x3d1ee4]
lea eax, [esi + 0x15e4]
mov ebx, ebp
mov dword [esp + 0x30], eax
mov edi, edi
mov eax, dword [esp + 0x4c]
cmp eax, 9
jae 0x4a5601
cmp eax, 7
jne 0x4a53fa
push 0x10
push 1
call fcn.004ba27f
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
mov dword [eax], edi
mov eax, dword [ecx]
mov ecx, dword [esi + 0x7a37f0]
lea edx, [esp + 0x1c]
push edx
add eax, 4
push eax
push str._d__X
push ecx
call fcn.004ba6ff
add esp, 0x18
cmp eax, 2
jne 0x4a5601
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
mov edx, 0x800
mul edx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x7a37f0]
inc edx
mov dword [esp + 0x34], edx
lea edx, [esp + 0x14]
push edx
add ecx, 4
push 0x50e0bc
push eax
mov dword [esp + 0x3c], ecx
call fcn.004ba6ff
add esp, 0xc
cmp eax, 1
jne 0x4a5601
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x3c], ecx
jmp 0x4a5402
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x3c], ecx
and eax, 1
xor edx, edx
cmp edi, edx
mov dword [esp + 0x40], eax
jne 0x4a541c
xor eax, eax
cmp ecx, edx
setne al
mov dword [esi + 0x7a37e4], eax
mov ecx, dword [esi + 0x828]
mov eax, 1
cmp ecx, eax
jne 0x4a5514
cmp dword [esp + 0x40], edx
je 0x4a543b
inc dword [esp + 0x1c]
jmp 0x4a543f
inc dword [esp + 0x20]
cmp dword [esp + 0x38], edx
mov ecx, dword [esp + 0x20]
je 0x4a54be
sub ecx, dword [esp + 0x1c]
cmp ecx, 5
jne 0x4a545c
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
jmp 0x4a547d
push 0xc
push 1
call fcn.004ba27f
mov ecx, dword [esp + 0x2c]
mov dword [ebx], eax
add esp, 8
mov dword [eax + 4], edi
mov edx, dword [ebx]
inc ecx
mov dword [edx], edi
mov dword [esp + 0x24], ecx
add ebx, 4
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
cmp eax, 5
jne 0x4a55de
xor eax, eax
push 0xc
push 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
call fcn.004ba27f
mov dword [ebx], eax
mov dword [eax + 4], edi
mov ecx, dword [ebx]
mov dword [ecx], edi
mov ecx, dword [esp + 0x2c]
add esp, 8
inc ecx
mov dword [esp + 0x24], ecx
add ebx, 4
jmp 0x4a55de
sub ecx, dword [esp + 0x1c]
cmp ecx, 3
jne 0x4a54d5
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], eax
jmp 0x4a54f6
push 0xc
push 1
call fcn.004ba27f
mov ecx, dword [esp + 0x2c]
mov dword [ebx], eax
add esp, 8
mov dword [eax + 4], edi
mov edx, dword [ebx]
inc ecx
mov dword [edx], edi
mov dword [esp + 0x24], ecx
add ebx, 4
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
cmp eax, 3
jne 0x4a55de
mov dword [esp + 0x38], 1
jmp 0x4a548e
cmp dword [esp + 0x2c], edx
push 0xc
push 1
je 0x4a553a
mov edx, dword [ebp]
mov dword [edx + 4], edi
inc dword [esp + 0x20]
add ebp, 4
call fcn.004ba27f
mov dword [ebp], eax
add esp, 8
mov dword [eax], edi
jmp 0x4a5580
cmp dword [esp + 0x30], edx
je 0x4a5561
mov edx, dword [esp + 0x20]
mov eax, dword [ebp]
inc edx
mov dword [eax], edi
mov dword [esp + 0x20], edx
add ebp, 4
call fcn.004ba27f
mov dword [ebp], eax
add esp, 8
mov dword [eax + 4], edi
jmp 0x4a5580
call fcn.004ba27f
mov dword [ebp], eax
mov dword [eax], edi
mov ecx, dword [ebp]
mov dword [ecx + 4], edi
mov ecx, dword [esp + 0x20]
add esp, 8
inc ecx
mov dword [esp + 0x18], ecx
add ebp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4a55de
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4a55a7
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4a55a7
push 0xc
push 1
call fcn.004ba27f
add esp, 8
mov dword [ebp], eax
mov ecx, dword [esp + 0x3c]
xor eax, eax
cmp ecx, eax
je 0x4a5648
mov edx, dword [ebp]
mov ecx, dword [esp + 0x28]
mov dword [edx], edi
mov dword [esp + 0x2c], 1
cmp ecx, eax
je 0x4a55de
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
add ebp, 4
mov eax, dword [esi + 0x7a37f0]
lea edx, [esp + 0x4c]
push edx
push 0x50e0bc
push eax
inc edi
call fcn.004ba6ff
add esp, 0xc
cmp eax, 1
je 0x4a5350
mov eax, dword [esi + 0x828]
mov dword [esi + 0x7a37fc], edi
sub edi, 2
cmp eax, 1
jne 0x4a565f
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + ecx*4 + 0x3d1ee0]
cmp dword [edx], edi
lea eax, [esi + ecx*4 + 0x3d1ee0]
jb 0x4a563d
jmp 0x4a5630
mov edx, dword [eax - 4]
mov ebx, dword [edx]
sub eax, 4
dec ecx
cmp ebx, edi
jae 0x4a5630
mov dword [esi + 0x7a37f8], ecx
jmp 0x4a576f
mov ecx, dword [ebp]
mov dword [ecx + 4], edi
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], 1
jmp 0x4a55c6
cmp eax, 2
jne 0x4a56e1
mov edx, dword [esi + 0x7a37e4]
xor eax, eax
test edx, edx
mov edx, dword [esp + 0x18]
sete al
lea ecx, [edx - 1]
test eax, eax
mov dword [esi + 0x7a37e4], eax
je 0x4a56b3
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jbe 0x4a56e5
lea esp, [esp]
mov ebx, dword [esi + eax*4 + 0x3d1ee8]
mov eax, dword [esi + eax*4 + 0x3d1ee4]
mov ebx, dword [ebx + 4]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4a5690
jmp 0x4a56e5
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jbe 0x4a56e5
lea ecx, [ecx]
mov ebx, dword [esi + eax*4 + 0x3d1ee8]
mov eax, dword [esi + eax*4 + 0x3d1ee4]
mov ebx, dword [ebx]
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4a56c0
jmp 0x4a56e5
mov edx, dword [esp + 0x18]
lea ecx, [esi + edx*4 + 0x3d1ee0]
lea esp, [esp]
mov eax, dword [ecx]
cmp dword [eax], edi
jae 0x4a56fb
cmp dword [eax + 4], edi
jb 0x4a5701
dec edx
sub ecx, 4
jmp 0x4a56f0
xor edi, edi
mov dword [esi + 0x7a37f8], edx
dec edx
test edx, edx
mov dword [esp + 0x10], edi
jbe 0x4a576f
jmp 0x4a5720
mov eax, dword [esi + edi*4 + 0x3d1ee4]
mov ecx, dword [esi + edi*4 + 0x3d1ee8]
mov edx, dword [eax]
mov ebx, dword [ecx]
cmp edx, ebx
je 0x4a5748
mov ecx, dword [ecx + 4]
cmp edx, ecx
je 0x4a5748
mov edx, dword [eax + 4]
cmp edx, ebx
je 0x4a5748
cmp edx, ecx
jne 0x4a575f
mov byte [eax + 8], 1
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + ecx*4 + 0x3d1ee8]
mov byte [edx + 9], 1
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x7a37f8]
inc edi
dec eax
cmp edi, eax
mov dword [esp + 0x10], edi
jb 0x4a5720
mov edx, dword [esi + 0x7a37f8]
xor eax, eax
test edx, edx
mov dword [esi + 0x7a37e8], 1
mov dword [esp + 0x10], eax
jbe 0x4a57b9
lea esp, [esp]
mov ecx, dword [esi + eax*4 + 0x3d1ee4]
mov edi, dword [ecx]
cmp edi, dword [ecx + 4]
jne 0x4a57af
mov ecx, dword [esi + 0x7a37f8]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4a5790
jmp 0x4a57b9
mov dword [esi + 0x7a37e8], 0
mov eax, dword [esp + 0x34]
mov dword [esi + 0x7a3800], eax
mov dword [esi + 0x7a3804], eax
mov eax, dword [esi + 0x1570]
imul eax, dword [esi + 0x156c]
lea ecx, [eax + eax*2]
mov dword [esi + 0x7a3810], edx
mov dword [esi + 0x7a380c], ecx
mov eax, 1
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, dword [esp + 0x18c]
pop esi
call fcn.004b8f56
add esp, 0x188
ret 8