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

Disassembly:
sub esp, 0x188
mov eax, dword [0x7161c0]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x198]
mov dword [esi + 0x7a3818], ecx
mov edx, dword [str.DVD2AVIProjectFile]
mov ecx, dword [0x653808]
mov dword [esp + 0x64], edx
mov edx, dword [0x65380c]
mov dword [esp + 0x68], ecx
mov ecx, dword [0x653810]
mov dword [esp + 0x6c], edx
mov dx, word [0x653814]
mov dword [esp + 0x70], ecx
mov cl, byte [0x653816]
push 0x653800
mov ebx, 1
push eax
mov word [esp + 0x7c], dx
mov byte [esp + 0x7e], cl
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 0x100
call fcn.005dc6fb
add esp, 8
test eax, eax
mov dword [esi + 0x7a37f0], eax
jne 0x5390ba
xor eax, eax
jmp 0x539e3c
push eax
lea edx, [esp + 0x7c]
push 0x13
push edx
call fcn.005e2726
add esp, 0xc
test eax, eax
je 0x5390b3
lea ecx, [esp + 0x64]
lea eax, [esp + 0x78]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5390f6
test dl, dl
je 0x5390f2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5390f6
add eax, 2
add ecx, 2
test dl, dl
jne 0x5390d6
xor eax, eax
jmp 0x5390fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5390b3
lea eax, [esp + 0x3c]
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 0x53916e
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x50]
push eax
push 0
push str.DVD2AVI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x8c]
push 0x5c
push edx
call fcn.005d8940
add eax, 1
push str.OpenDVD.dll
push eax
call fcn.005dbdee
mov eax, dword [esp + 0x4c]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x7a37ec], eax
je 0x539198
push str.BufferOp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x848], eax
mov dword [esp + 8], 0
push 0x104
call fcn.005b4663
mov edx, dword [esp + 0xc]
mov dword [esi + edx*4 + 0xc4c], eax
mov eax, dword [esp + 0xc]
add eax, ebx
add esp, 4
cmp eax, 0x100
mov dword [esp + 8], eax
jb 0x5391a0
mov eax, dword [esi + 0x7a37f0]
push edi
lea edi, [esi + 0x824]
push edi
push 0x635f58
push eax
call fcn.005e2b76
add esp, 0xc
cmp eax, ebx
jne 0x5392e8
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0xc], eax
je 0x539286
jmp 0x539200
mov edx, dword [esi + 0x7a37f0]
lea ecx, [esp + 0x10]
push ecx
push 0x6537c8
push edx
call fcn.005e2b76
add esp, 0xc
cmp eax, ebx
jne 0x5392e8
mov eax, dword [esi + 0x7a37f0]
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
sub edx, dword [esp + 0xc]
push eax
mov eax, dword [esi + edx*4 + 0xc4c]
add ecx, ebx
push ecx
push eax
call fcn.005e2726
mov ecx, dword [edi]
sub ecx, dword [esp + 0x18]
push 0
mov edx, dword [esi + ecx*4 + 0xc4c]
push 0x8000
push edx
call fcn.005e2a0e
mov ecx, dword [edi]
sub ecx, dword [esp + 0x24]
add esp, 0x18
mov dword [esi + ecx*4 + 0x84c], eax
mov edx, dword [edi]
sub edx, dword [esp + 0xc]
cmp dword [esi + edx*4 + 0x84c], 0xffffffff
je 0x5392e8
sub dword [esp + 0xc], ebx
jne 0x539200
mov ebx, dword [esi + 0x7a37f0]
push ebp
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.00536a30
add esp, 4
push eax
call fcn.005ddf88
add esp, 0x14
cmp eax, 3
jne 0x53997c
cmp dword [ebp], 0
jne 0x5392ef
cmp dword [esi + 0x844], 0
jne 0x5392ef
mov dword [esi + 0x83c], 0
jmp 0x5392f9
xor eax, eax
jmp 0x539e3b
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.00536a30
add esp, 4
push eax
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
jne 0x53997c
mov eax, dword [ebp]
sub eax, 2
je 0x539351
sub eax, 1
je 0x53934a
sub eax, 1
jne 0x539361
call fcn.00551c80
jmp 0x539361
call fcn.00552130
jmp 0x539361
cmp dword [0x721338], 0
jne 0x539361
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.005e260d
add esp, 0x10
mov ecx, esi
call fcn.005372d0
mov ecx, esi
call fcn.005374e0
push 0x20
mov ecx, esi
call fcn.00537460
cmp eax, 0x1b3
jne 0x539382
mov ecx, esi
call fcn.00538cd0
mov eax, dword [esi + 0x1594]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
mov ecx, eax
mov eax, dword [esi + 0x1598]
sar ecx, 4
cmp dword [esi + 0x15a4], ebx
mov dword [esi + 0x159c], ecx
je 0x5393d6
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
sar eax, 4
jmp 0x5393e4
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
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 0x539409
sar ecx, 1
cmp edx, 1
mov dword [esi + 0x1584], ecx
jne 0x539416
sar eax, 1
mov dword [esi + 0x1588], eax
mov edx, dword [edx*4 + 0x6536c0]
mov dword [esi + 0x158c], edx
mov dword [esp + 0x10], ebx
lea ecx, [ecx]
push 0xc0
call fcn.005b4663
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 0x539462
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]
add eax, 1
cmp eax, 8
mov dword [esp + 0x10], eax
jb 0x539430
push 0x240
call fcn.005b4663
mov ecx, eax
add esp, 4
and ecx, 0x8000003f
mov dword [esi + 0x146c], eax
jns 0x5394a0
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 0x5394c4
mov edi, dword [esi + 0x1580]
imul edi, dword [esi + 0x157c]
jmp 0x5394d1
mov edi, dword [esi + 0x1588]
imul edi, dword [esi + 0x1584]
push edi
call fcn.005b4663
mov edx, dword [esp + 0x14]
push edi
mov dword [esi + edx*4 + 0x14bc], eax
call fcn.005b4663
mov ecx, dword [esp + 0x18]
push edi
mov dword [esi + ecx*4 + 0x14c8], eax
call fcn.005b4663
mov edx, dword [esp + 0x1c]
mov dword [esi + edx*4 + 0x14d4], eax
mov eax, dword [esp + 0x1c]
add eax, 1
add esp, 0xc
cmp eax, 3
mov dword [esp + 0x10], eax
jb 0x5394b1
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.00536a30
add esp, 4
push eax
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
jne 0x53997c
xor eax, eax
cmp dword [esp + 0x10], eax
je 0x5395a0
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 0x5395e4
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 + 0x151c], eax
mov dword [esi + 0x1518], eax
call fcn.00536a30
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.005ddf88
add esp, 0x14
cmp eax, 2
je 0x539663
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.Luminance_Filter_d__d_n
push edi
call fcn.005ddf88
add esp, 0x10
cmp eax, 2
jne 0x53997c
mov dword [esp + 0x10], 0x80
mov dword [esp + 0x14], 0
mov dword [esi + 0x834], 0
jmp 0x5396e0
mov eax, dword [esp + 0x10]
cmp eax, 0x80
mov edi, dword [esp + 0x14]
jne 0x53967e
test edi, edi
jne 0x53967e
mov dword [esi + 0x834], edi
jmp 0x5396e0
push 0x10001
push 0x10001
push 0
push eax
mov dword [esi + 0x834], 1
call fcn.005d9dc0
push 0x10001
push 0x10001
push 0
push edi
mov dword [esi + 0x1538], eax
mov dword [esi + 0x153c], edx
call fcn.005d9dc0
mov dword [esi + 0x1534], edx
mov edx, dword [esi + 0x1580]
imul edx, dword [esi + 0x157c]
push edx
mov dword [esi + 0x1530], eax
call fcn.005b4663
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.00536a30
add esp, 4
push eax
call fcn.005ddf88
add esp, 0x20
cmp eax, 6
jne 0x53997c
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 0x53978b
cmp dword [esp + 0x48], ecx
jne 0x53978b
cmp ebp, ecx
jne 0x53978b
cmp edi, ecx
je 0x5397d3
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 0x5397e3
cmp ebx, ecx
je 0x5397f9
sub dword [esi + 0x1574], edi
sub dword [esi + 0x1578], ebx
mov dword [esi + 0x838], 1
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.005b4663
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.005b4663
mov edx, dword [esi + 0x1580]
imul edx, dword [esi + 0x157c]
push edx
mov dword [esi + 0x14f0], eax
call fcn.005b4663
mov dword [esi + 0x14f4], eax
mov eax, dword [esi + 0x1580]
imul eax, dword [esi + 0x157c]
push eax
call fcn.005b4663
mov ecx, dword [esi + 0x1570]
imul ecx, dword [esi + 0x156c]
add ecx, ecx
add ecx, ecx
push ecx
mov dword [esi + 0x14f8], eax
call fcn.005b4663
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.00536a30
add esp, 4
push eax
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
jne 0x53997c
mov ebx, dword [esi + 0x7a37f0]
lea edx, [esi + 0x7a37f4]
push edx
push str.Frame_Rate_d_n
push 0x100
call fcn.00536a30
add esp, 4
push eax
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
jne 0x53997c
mov ebx, dword [esi + 0x7a37f0]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov edx, eax
push edx
mov eax, ecx
push eax
push str.Location_d__X__d__X_n
push 0x100
call fcn.00536a30
add esp, 4
push eax
call fcn.005ddf88
add esp, 0x18
cmp eax, 4
je 0x539983
xor eax, eax
jmp 0x539e3a
mov edx, dword [esi + 0x7a37f0]
xor edi, edi
lea ecx, [esp + 0x4c]
push ecx
push 0x635f58
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.005e2b76
add esp, 0xc
cmp eax, 1
jne 0x539c65
lea ebp, [esi + 0x3d1ee4]
lea eax, [esi + 0x15e4]
mov ebx, ebp
mov dword [esp + 0x30], eax
lea esp, [esp]
mov eax, dword [esp + 0x4c]
cmp eax, 9
jae 0x539c65
cmp eax, 7
jne 0x539a83
push 0x10
push 1
call fcn.005d97e3
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.005e2b76
add esp, 0x18
cmp eax, 2
jne 0x539c65
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
add dword [esp + 0x34], 1
add dword [esp + 0x30], 4
mov edx, 0x800
mul edx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, dword [esi + 0x7a37f0]
lea edx, [esp + 0x14]
push edx
push 0x635f58
push eax
call fcn.005e2b76
add esp, 0xc
cmp eax, 1
jne 0x539c65
mov eax, dword [esp + 0x14]
mov ecx, eax
mov edx, 1
shr ecx, 1
and eax, edx
jmp 0x539a8f
mov ecx, eax
shr ecx, 1
and eax, 1
mov edx, 1
mov dword [esp + 0x40], eax
xor eax, eax
cmp edi, eax
mov dword [esp + 0x3c], ecx
jne 0x539aaa
test ecx, ecx
setne al
mov dword [esi + 0x7a37e4], eax
xor eax, eax
cmp dword [esi + 0x828], edx
jne 0x539b88
cmp dword [esp + 0x40], eax
je 0x539ac2
add dword [esp + 0x1c], edx
jmp 0x539ac6
add dword [esp + 0x20], edx
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
cmp dword [esp + 0x38], eax
je 0x539b13
cmp ecx, 5
jne 0x539ae3
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
jmp 0x539b00
push 0xc
push 1
call fcn.005d97e3
add dword [esp + 0x2c], 1
mov dword [ebx], eax
mov dword [eax + 4], edi
mov edx, dword [ebx]
add esp, 8
mov dword [edx], edi
add ebx, 4
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
cmp eax, 5
jne 0x539c40
jmp 0x539b5c
cmp ecx, 3
jne 0x539b26
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], edx
jmp 0x539b43
push 0xc
push 1
call fcn.005d97e3
add dword [esp + 0x2c], 1
mov dword [ebx], eax
mov dword [eax + 4], edi
mov edx, dword [ebx]
add esp, 8
mov dword [edx], edi
add ebx, 4
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
cmp eax, 3
jne 0x539c40
mov dword [esp + 0x38], 1
xor eax, eax
push 0xc
push 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.005d97e3
add dword [esp + 0x2c], 1
mov dword [ebx], eax
mov dword [eax + 4], edi
mov ecx, dword [ebx]
add esp, 8
mov dword [ecx], edi
add ebx, 4
jmp 0x539c40
cmp dword [esp + 0x2c], eax
push 0xc
push 1
je 0x539baf
mov edx, dword [ebp]
add dword [esp + 0x20], 1
mov dword [edx + 4], edi
add ebp, 4
call fcn.005d97e3
mov dword [ebp], eax
add esp, 8
mov dword [eax], edi
jmp 0x539bed
cmp dword [esp + 0x30], eax
je 0x539bd2
mov eax, dword [ebp]
add dword [esp + 0x20], 1
mov dword [eax], edi
add ebp, 4
call fcn.005d97e3
mov dword [ebp], eax
add esp, 8
mov dword [eax + 4], edi
jmp 0x539bed
call fcn.005d97e3
add dword [esp + 0x20], 1
mov dword [ebp], eax
mov dword [eax], edi
mov ecx, dword [ebp]
add esp, 8
mov dword [ecx + 4], edi
add ebp, 4
cmp dword [esp + 0x40], 0
je 0x539c40
cmp dword [esp + 0x2c], 0
jne 0x539c11
cmp dword [esp + 0x28], 0
jne 0x539c11
push 0xc
push 1
call fcn.005d97e3
add esp, 8
mov dword [ebp], eax
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
je 0x539ca8
mov edx, dword [ebp]
cmp dword [esp + 0x28], ecx
mov eax, 1
mov dword [edx], edi
mov dword [esp + 0x2c], eax
je 0x539c40
add dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
add ebp, 4
mov edx, dword [esi + 0x7a37f0]
lea ecx, [esp + 0x4c]
push ecx
push 0x635f58
push edx
add edi, 1
call fcn.005e2b76
add esp, 0xc
cmp eax, 1
je 0x5399e0
mov eax, dword [esi + 0x828]
mov dword [esi + 0x7a37fc], edi
sub edi, 2
cmp eax, 1
jne 0x539cc0
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + ecx*4 + 0x3d1ee0]
cmp dword [edx], edi
lea eax, [esi + ecx*4 + 0x3d1ee0]
jb 0x539c9d
nop
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 1
cmp dword [edx], edi
jae 0x539c90
mov dword [esi + 0x7a37f8], ecx
jmp 0x539dc3
mov eax, dword [ebp]
cmp dword [esp + 0x2c], ecx
mov dword [eax + 4], edi
mov eax, 1
mov dword [esp + 0x28], eax
jmp 0x539c2f
cmp eax, 2
mov edx, dword [esp + 0x18]
jne 0x539d41
xor eax, eax
cmp dword [esi + 0x7a37e4], eax
lea ecx, [edx - 1]
sete al
test eax, eax
mov dword [esi + 0x7a37e4], eax
je 0x539d15
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jbe 0x539d41
nop
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]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x539cf0
jmp 0x539d41
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jbe 0x539d41
nop
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]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x539d20
lea ecx, [esi + edx*4 + 0x3d1ee0]
mov eax, dword [ecx]
cmp dword [eax], edi
jae 0x539d53
cmp dword [eax + 4], edi
jb 0x539d5b
sub edx, 1
sub ecx, 4
jmp 0x539d48
xor ecx, ecx
mov dword [esi + 0x7a37f8], edx
add edx, 0xffffffff
mov dword [esp + 0x10], ecx
je 0x539dc3
lea esp, [esp]
mov eax, dword [esi + ecx*4 + 0x3d1ee4]
mov edi, dword [esi + ecx*4 + 0x3d1ee8]
mov edx, dword [eax]
mov ebx, dword [edi]
cmp edx, ebx
je 0x539d98
mov edi, dword [edi + 4]
cmp edx, edi
je 0x539d98
mov edx, dword [eax + 4]
cmp edx, ebx
je 0x539d98
cmp edx, edi
jne 0x539daf
mov byte [eax + 8], 1
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + ecx*4 + 0x3d1ee8]
mov byte [edx + 9], 1
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x7a37f8]
add ecx, 1
sub eax, 1
cmp ecx, eax
mov dword [esp + 0x10], ecx
jb 0x539d70
mov edx, dword [esi + 0x7a37f8]
xor eax, eax
test edx, edx
mov dword [esi + 0x7a37e8], 1
mov dword [esp + 0x10], eax
jbe 0x539e09
lea ecx, [ecx]
mov ecx, dword [esi + eax*4 + 0x3d1ee4]
mov edi, dword [ecx]
cmp edi, dword [ecx + 4]
jne 0x539dff
add eax, 1
cmp eax, dword [esi + 0x7a37f8]
mov dword [esp + 0x10], eax
jb 0x539de0
jmp 0x539e09
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 ebp
pop edi
mov ecx, dword [esp + 0x18c]
pop esi
pop ebx
xor ecx, esp
call fcn.005d8d34
add esp, 0x188
ret 8