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

Disassembly:
sub esp, 0x88
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0x84], eax
mov edx, dword [esp + 0x8c]
xor ecx, ecx
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 0xc], edx
mov eax, dword [edx + 0x40]
mov ebp, 3
push esi
push edi
mov dword [esp + 0x28], ebp
movzx eax, word [eax + 0x16]
lea edi, [ebp + 5]
add eax, 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ecx
test eax, eax
jle 0x52feb5
lea esi, [eax - 1]
jmp 0x52fecb
xor esi, esi
mov ebp, 2
cmp dword [edx + 4], 0xffffffff
mov dword [esp + 0x28], ebp
cmovne ecx, edi
mov dword [esp + 0x40], ecx
mov eax, dword [edx + 0xc]
sub eax, esi
mov dword [esp + 0x44], esi
cmp ebp, eax
jle 0x52fee9
cmp dword [edx + 8], 0xffffffff
mov ebp, eax
mov dword [esp + 0x28], ebp
cmovne ecx, edi
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0xa0]
mov ecx, eax
and ecx, 6
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ecx
jne 0x52ff10
cmp ebp, 2
jl 0x530123
test al, 8
je 0x530123
xor edi, edi
test ebp, ebp
jle 0x53009a
mov eax, esi
not eax
mov dword [esp + 0x3c], eax
mov eax, 1
sub eax, esi
mov dword [esp + 0x38], eax
jmp 0x52ff38
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x44]
add esi, edi
js 0x52ff41
cmp esi, dword [edx + 0xc]
jl 0x52ff5b
push 0
push 0
push str.hb_cdxPageGetKeyPage:_wrong_iKey_index.
push 0x23f1
call fcn.004ecae0
mov edx, dword [esp + 0x24]
add esp, 0x10
test byte [edx + 0x20], 2
je 0x52ff7b
push 0
push 0
push str.hb_cdxPageGetKeyPage:_page_is_a_leaf.
push 0x23f1
call fcn.004ecae0
mov edx, dword [esp + 0x24]
add esp, 0x10
mov edx, dword [edx + 0x40]
lea eax, [esi + 1]
movzx ecx, word [edx + 0x16]
add ecx, 8
imul ecx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [ecx + eax + 0x54]
mov ecx, dword [esp + 0x14]
bswap eax
mov esi, dword [ecx + 0x3c]
test esi, esi
je 0x52ffad
cmp dword [esi], eax
jne 0x52ffad
mov dword [ecx + 0x3c], 0
jmp 0x52ffba
push eax
push ecx
push edx
call fcn.005314b0
add esp, 0xc
mov esi, eax
mov dword [esp + edi*4 + 0x58], esi
test edi, edi
jle 0x53001f
mov ecx, dword [esp + edi*4 + 0x54]
mov edx, dword [ecx + 8]
cmp dword [esi], edx
jne 0x52ffd4
mov eax, dword [esi + 4]
cmp eax, dword [ecx]
je 0x53001f
push dword [esi + 4]
mov eax, dword [esp + 0x48]
push edi
push dword [esi]
add eax, edi
add eax, dword [esp + 0x48]
push edi
push edx
push eax
push dword [ecx]
push eax
push str._r_nchilds__d___Page_lx__childs__d___Right_lx__childs__d___Page_lx__childs__d___Left_lx
call fcn.00535870
push 1
call fcn.005a0b8c
push eax
call fcn.005a6524
push 0
push 0
push str.hb_cdxPageKeyLeafBalance:_index_corrupted.
push 0x23f1
call fcn.004ecae0
mov ebp, dword [esp + 0x64]
add esp, 0x3c
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
movzx edx, word [esi + 0x32]
mov dword [esp + edi*4 + 0x6c], eax
movzx eax, byte [esi + 0x1f]
movsx ecx, dx
mov dword [esp + edi*4 + 0x80], ecx
cmp ecx, eax
jl 0x530042
add dword [esp + 0x2c], ecx
jmp 0x53007c
test dx, dx
js 0x53007c
mov eax, dword [esp + 0x20]
cmp edi, eax
jne 0x530056
inc eax
mov dword [esp + 0x20], eax
jmp 0x53007c
mov eax, dword [esp + 0x44]
add eax, edi
add eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x53007c
mov eax, dword [esp + 0x10]
test al, 2
jne 0x530080
push 0
dec ebp
push esi
mov dword [esp + 0x30], ebp
call fcn.0052eea0
add esp, 8
mov eax, dword [esp + 0x10]
cmp edi, dword [esp + 0x20]
jl 0x530091
cmp edi, ebp
jge 0x530091
add ebx, dword [esi + 0xc]
mov dword [esp + 0x1c], ebx
inc edi
cmp edi, ebp
jl 0x52ff30
test al, 2
jne 0x5300e2
mov edi, dword [esp + 0x20]
lea esi, [ebp - 1]
cmp esi, edi
jle 0x5300e2
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x58]
movzx edx, word [ecx + 0x32]
test dx, dx
js 0x5300da
movzx eax, byte [ecx + 0x1f]
cmp dx, ax
jge 0x5300da
sub ebx, dword [ecx + 0xc]
push 0
push ecx
call fcn.0052eea0
dec esi
add esp, 8
dec ebp
cmp esi, edi
jg 0x5300b0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x30], 0
jne 0x53012c
cmp ebp, 2
jl 0x530105
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x7c]
movzx eax, word [eax + 0x2e]
sub eax, 0x18
cmp dword [esp + 0x2c], eax
jge 0x53012c
xor esi, esi
test ebp, ebp
jle 0x530123
nop dword [eax + eax]
push 0
push dword [esp + esi*4 + 0x5c]
call fcn.0052eea0
inc esi
add esp, 8
cmp esi, ebp
jl 0x530110
mov eax, dword [esp + 0x40]
jmp 0x5309fd
test ebx, ebx
jle 0x53025f
mov edi, dword [esp + 0x18]
mov eax, ebx
imul eax, edi
mov dword [esp + 0x4c], ebx
push eax
call fcn.004a67c0
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x34], eax
mov esi, eax
mov dword [esp + 0x2c], ecx
mov eax, ecx
cmp ecx, ebp
jge 0x53025f
test ebx, ebx
jle 0x53025b
shl eax, 2
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + eax + 0x58]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0xc]
test eax, eax
jle 0x53024a
mov edx, dword [ecx + 0x34]
test edx, edx
je 0x53019b
imul eax, edi
push eax
push edx
push esi
call fcn.0059ce60
add esp, 0xc
jmp 0x5301a5
push esi
push ecx
call fcn.00530d50
add esp, 8
cmp esi, dword [esp + 0x34]
jbe 0x53023a
movzx eax, word [esi + edi - 2]
xor edx, edx
sub edi, eax
lea eax, [edi - 8]
test eax, eax
jle 0x5301d9
mov ecx, esi
lea ebp, [edi - 8]
sub ecx, dword [esp + 0x18]
mov al, byte [edx + esi]
cmp al, byte [ecx + edx]
jne 0x5301d5
inc edx
cmp edx, ebp
jl 0x5301c8
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov word [esi + eax - 4], dx
mov eax, dword [esp + 0x2c]
dec eax
cmp ecx, eax
jne 0x53023a
mov eax, dword [esp + ecx*4 + 0x58]
movzx ecx, word [eax + 0x32]
test cx, cx
js 0x53023a
movzx eax, byte [eax + 0x1f]
sub edi, edx
movsx ecx, cx
sub edi, 8
sub ecx, eax
cmp edi, ecx
mov edi, dword [esp + 0x10]
jle 0x53023e
mov eax, dword [edi + 0xc]
imul eax, dword [esp + 0x18]
push eax
push esi
mov esi, dword [esp + 0x3c]
push esi
call fcn.0059ce60
mov eax, dword [esp + 0x48]
add esp, 0xc
mov eax, dword [esp + eax + 0x54]
sub ebx, dword [eax + 0xc]
inc dword [esp + 0x20]
jmp 0x53023e
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
mov edi, dword [esp + 0x18]
imul eax, edi
add esi, eax
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, ebp
jl 0x530162
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov edx, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], edi
test ebx, ebx
jle 0x5307e0
nop
mov dword [esp + 0x54], eax
cmp edi, ebp
jne 0x5305c0
lea eax, [esp + 0x58]
lea eax, [eax + edi*4]
mov dword [esp + 0x3c], eax
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x5302c3
push eax
mov eax, dword [esp + 0x18]
push eax
push dword [eax + 0x40]
call fcn.005314b0
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x38], eax
jmp 0x5302c9
xor edi, edi
mov dword [esp + 0x38], edi
test ecx, ecx
jne 0x5304e1
test edi, edi
je 0x5304e1
xor eax, eax
xor esi, esi
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x53033d
mov edi, dword [esp + 0x1c]
nop dword [eax]
lea ebp, [ecx + 1]
mov eax, ebp
imul eax, dword [esp + 0x18]
add edx, eax
mov eax, dword [edx - 8]
cmp esi, eax
cmovae eax, esi
mov esi, eax
test ecx, ecx
jne 0x53030e
xor ebx, ebx
jmp 0x530312
movzx ebx, word [edx - 4]
movzx eax, word [edx - 2]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [esp + 0x30]
sub ecx, ebx
add eax, 0xfffffff8
add eax, ecx
mov ecx, ebp
mov dword [esp + 0x30], eax
cmp ecx, edi
jl 0x5302f0
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
push 0
push edi
call fcn.0052f0c0
mov dword [esp + 0x40], eax
add esp, 8
mov eax, dword [edi + 0x34]
test eax, eax
je 0x530361
mov ecx, dword [edi + 0x40]
movzx ecx, word [ecx + 0x16]
movzx edx, word [ecx + eax + 6]
jmp 0x53037c
movzx eax, byte [edi + 0x1e]
mov ecx, 0x20
sub ecx, eax
movzx eax, byte [edi + 0x1f]
mov edx, dword [eax + edi + 0x60]
movzx eax, word [edi + 0x1a]
shr edx, cl
and edx, eax
mov ebx, dword [esp + 0x18]
xor ecx, ecx
sub ebx, edx
sub ebx, 8
test ebx, ebx
jle 0x5303b1
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x38]
dec edx
imul edx, dword [esp + 0x18]
add edx, dword [esp + 0x24]
nop dword [eax]
mov al, byte [edx]
cmp al, byte [ecx + ebp]
jne 0x5303ad
inc ecx
inc edx
cmp ecx, ebx
jl 0x5303a0
mov ebp, dword [esp + 0x28]
sub dword [esp + 0x30], ecx
movzx ecx, byte [edi + 0x1f]
mov eax, dword [edi + 0x14]
mov edx, ecx
cmp esi, eax
jbe 0x5303cf
shl eax, 8
inc edx
or eax, 0xff
cmp esi, eax
ja 0x5303c2
mov esi, dword [edi + 0xc]
mov eax, edx
mov ebx, dword [esp + 0x1c]
sub eax, ecx
movsx ecx, word [edi + 0x32]
imul eax, esi
imul edx, ebx
sub ecx, eax
sub ecx, edx
sub ecx, dword [esp + 0x30]
js 0x5304e1
mov ecx, dword [esp + 0x18]
lea eax, [esi + ebx]
mov ebp, ebx
imul ebp, ecx
cmp dword [esp + 0x4c], eax
jl 0x53041b
push ebp
push dword [esp + 0x28]
push dword [esp + 0x3c]
call fcn.0059ce60
mov ecx, dword [esp + 0x40]
add esp, 0xc
jmp 0x530447
mov dword [esp + 0x4c], eax
imul eax, ecx
push eax
call fcn.004a67c0
push ebp
push dword [esp + 0x2c]
mov esi, eax
push esi
call fcn.0059ce60
push dword [esp + 0x44]
call fcn.004a6790
mov ecx, esi
add esp, 0x14
mov dword [esp + 0x34], ecx
mov eax, dword [edi + 0xc]
test eax, eax
jle 0x5304b2
lea esi, [ecx + ebp]
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x53046a
imul eax, dword [esp + 0x18]
push eax
push ecx
push esi
call fcn.0059ce60
add esp, 0xc
jmp 0x530474
push esi
push edi
call fcn.00530d50
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, ecx
lea eax, [esi + ecx]
xor ecx, ecx
mov dword [esp + 0x38], eax
movzx eax, word [eax - 2]
sub edx, eax
sub edx, 8
test edx, edx
jle 0x5304a3
mov ebp, esi
sub ebp, dword [esp + 0x18]
mov al, byte [ecx + esi]
cmp al, byte [ecx + ebp]
jne 0x5304a3
inc ecx
cmp ecx, edx
jl 0x530496
mov eax, dword [esp + 0x38]
mov word [eax - 4], cx
add ebx, dword [edi + 0xc]
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], edx
mov dword [eax], edi
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
add eax, edi
cmp eax, dword [ecx + 0xc]
jl 0x5305c0
or dword [esp + 0x40], 1
jmp 0x5305c0
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x40]
mov eax, dword [esi + 0x7c]
movzx ecx, word [eax + 0x2e]
movzx eax, word [esi + 0x16]
add eax, 0x54
add eax, ecx
push eax
push 0
push eax
call fcn.004a67c0
add esp, 4
push eax
call fcn.0059d510
mov ebx, eax
push 0
mov byte [ebx + 0x20], 0xff
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x40], esi
push dword [esi + 0x7c]
call fcn.0052d5d0
mov dword [ebx], eax
add esp, 0x14
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x44], 0
mov eax, dword [esi + 0xa4]
mov dword [ebx + 0x48], eax
mov dword [esi + 0xa4], ebx
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x530557
mov dword [eax + 0x44], ebx
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x10], 0xffffffff
mov word [ebx + 0x20], 0x102
mov ecx, dword [eax - 4]
mov dword [eax], ebx
mov eax, dword [ecx]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov dword [ecx + 8], eax
mov dword [ecx + 0x24], 1
test edi, edi
je 0x5305a6
mov eax, dword [ebx]
push 0
push edi
mov dword [edi + 4], eax
mov dword [edi + 0x24], 1
call fcn.0052eea0
add esp, 8
mov edx, dword [esp + 0x24]
inc ebp
or dword [esp + 0x40], 8
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov esi, dword [esp + edi*4 + 0x58]
mov dword [esp + 0x50], edx
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5305ed
push eax
call fcn.004a6790
mov dword [esi + 0x34], 0
add esp, 4
mov dword [esi + 0x28], 0
mov edi, dword [esi + 0x40]
xor cl, cl
movzx ebp, word [edi + 0x16]
mov dword [esp + 0x3c], ebp
lea eax, [ebp + 8]
mov dword [esp + 0x38], eax
mov eax, ebp
test ebp, ebp
je 0x530619
inc cl
sar eax, 1
jne 0x530607
cmp cl, 0xc
jbe 0x530619
mov ebx, 5
jmp 0x530624
mov al, 8
cmp al, cl
sbb ebx, ebx
neg ebx
add ebx, 3
mov al, cl
mov byte [esi + 0x1e], cl
add al, al
mov byte [esi + 0x1d], cl
mov dl, bl
mov byte [esi + 0x1f], bl
shl dl, 3
sub dl, al
mov eax, 1
shl ax, cl
mov cl, dl
dec ax
mov byte [esi + 0x1c], dl
mov edx, dword [esp + 0x24]
mov word [esi + 0x1a], ax
mov word [esi + 0x18], ax
mov eax, 1
shl eax, cl
dec eax
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x7c]
xor edi, edi
mov cx, word [ecx + 0x2e]
sub cx, 0x18
mov dword [esi + 0xc], 0
mov word [esi + 0x32], cx
lea ecx, [edx + 4]
add ecx, ebp
xor ebp, ebp
mov dword [esp + 0x30], ecx
mov word [ecx], di
cmp dword [esp + 0x1c], edi
jle 0x53070f
nop
mov edi, dword [ecx - 4]
movzx ecx, word [ecx + 2]
movzx edx, bl
sub edx, ecx
mov ecx, dword [esp + 0x30]
movzx ecx, word [ecx]
sub edx, ecx
add edx, dword [esp + 0x3c]
cmp edi, eax
jbe 0x5306e2
mov cl, byte [esi + 0x1c]
shl eax, 8
inc edx
or eax, 0xff
inc bl
add cl, 8
add edx, ebp
cmp edi, eax
ja 0x5306b0
movzx edi, word [esi + 0x32]
mov byte [esp + 0x4b], cl
movsx ecx, di
cmp edx, ecx
jg 0x53070b
mov cl, byte [esp + 0x4b]
mov dword [esi + 0x14], eax
mov byte [esi + 0x1c], cl
mov byte [esi + 0x1f], bl
jmp 0x5306ed
movzx edi, word [esi + 0x32]
movsx ecx, di
cmp edx, ecx
jg 0x53070b
inc dword [esi + 0xc]
mov ecx, edi
sub ecx, edx
inc ebp
mov word [esi + 0x32], cx
mov ecx, dword [esp + 0x30]
add ecx, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
cmp ebp, dword [esp + 0x1c]
jl 0x530690
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
cmp edi, ecx
jne 0x530763
cmp edi, ebp
jge 0x530763
cmp dword [esi + 0x24], 0
jne 0x530763
mov eax, dword [esi + 0xc]
cmp eax, dword [esp + edi*4 + 0x6c]
jne 0x530763
movsx eax, word [esi + 0x32]
cmp eax, dword [esp + edi*4 + 0x80]
jne 0x530763
mov ebx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov edx, ecx
imul edx, dword [esi + 0xc]
add edx, dword [esp + 0x50]
sub ebx, dword [esi + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ebx
jmp 0x53079d
push dword [esi + 0xc]
push edx
push esi
call fcn.005310f0
mov eax, dword [esi + 0xc]
add esp, 0xc
imul eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
sub ebx, dword [esi + 0xc]
mov dword [esp + 0x1c], ebx
add edx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
cmp edi, ebp
jge 0x5307c6
mov ecx, dword [esp + 0x18]
push dword [esi]
mov eax, dword [esp + 0x48]
push dword [edx - 8]
sub edx, ecx
add eax, edi
push edx
push dword [esp + 0x38]
push eax
push dword [esp + 0x28]
call fcn.0052f350
mov edx, dword [esp + 0x3c]
add esp, 0x18
mov eax, dword [esp + 0x20]
jmp 0x5307cf
inc ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebp
mov ecx, dword [esp + 0x2c]
inc edi
mov dword [esp + 0x10], edi
test ebx, ebx
jg 0x530280
cmp edi, ebp
jge 0x5309a8
mov edi, dword [esp + ebp*4 + 0x54]
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x10]
mov esi, dword [edi + 8]
cmp esi, 0xffffffff
je 0x5308cd
cmp ebx, 1
jg 0x530815
jne 0x5308cd
cmp dword [eax + 4], 0xffffffff
jne 0x5308cd
mov esi, dword [esp + ebx*4 + 0x54]
mov ecx, dword [edi]
mov dword [esp + 0x54], ecx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esp + 0x44]
mov dword [esi], ecx
dec eax
mov ecx, dword [esp + 0x14]
add ebx, eax
mov eax, dword [ecx + 0x40]
movzx eax, word [eax + 0x16]
mov dword [esp + 0x3c], eax
add eax, 8
imul eax, ebx
test byte [ecx + 0x20], 2
mov dword [esp + 0x50], eax
je 0x530865
push 0
push 0
push str.hb_cdxPageIntSetKey:_page_is_a_leaf_
push 0x23f1
call fcn.004ecae0
mov ecx, dword [esp + 0x24]
add esp, 0x10
test ebx, ebx
js 0x53086e
cmp ebx, dword [ecx + 0xc]
jl 0x530884
push 0
push 0
push str.hb_cdxPageIntSetKey:_wrong_iKey_index.
push 0x23f1
call fcn.004ecae0
add esp, 0x10
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
mov ecx, edx
bswap ecx
mov dword [eax + ebx + 0x5c], ecx
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [eax + 0x24], 1
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov dword [esi + 0x24], 1
cmp ebx, 1
jle 0x530936
mov eax, dword [esp + ebx*4 + 0x50]
mov dword [eax + 8], edx
mov dword [eax + 0x24], 1
jmp 0x530936
test ebx, ebx
jle 0x5308e3
mov eax, dword [esp + ebx*4 + 0x54]
mov edi, dword [eax]
mov dword [eax + 8], esi
mov dword [eax + 0x24], 1
jmp 0x53090e
mov edi, dword [eax + 4]
cmp edi, 0xffffffff
je 0x53090e
mov eax, dword [esp + 0x14]
push edi
push eax
push dword [eax + 0x40]
call fcn.005314b0
push 0
push eax
mov dword [eax + 8], esi
mov dword [eax + 0x24], 1
call fcn.0052eea0
add esp, 0x14
cmp esi, 0xffffffff
je 0x530936
mov eax, dword [esp + 0x14]
push esi
push eax
push dword [eax + 0x40]
call fcn.005314b0
push 0
push eax
mov dword [eax + 4], edi
mov dword [eax + 0x24], 1
call fcn.0052eea0
add esp, 0x14
mov edi, dword [esp + 0x14]
nop word [eax + eax]
mov esi, dword [esp + ebp*4 + 0x54]
dec ebp
mov eax, dword [esi + 0x34]
test eax, eax
je 0x530963
push eax
call fcn.004a6790
mov dword [esi + 0x34], 0
add esp, 4
mov dword [esi + 0x28], 0
mov eax, dword [esp + 0x44]
add eax, ebp
push eax
push edi
call fcn.0052f2a0
mov dword [esi + 0x38], 0
mov dword [esi + 0x24], 0
mov byte [esi + 0x20], 0xff
push 0
mov dword [esi + 4], 0xffffffff
push esi
mov dword [esi + 8], 0xffffffff
call fcn.0052eea0
add esp, 0x10
cmp ebp, ebx
jg 0x530940
mov ebx, dword [esp + 0x40]
or ebx, 8
jmp 0x5309b0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x40]
xor esi, esi
test ebp, ebp
jle 0x5309d3
nop word [eax + eax]
push 0
push dword [esp + esi*4 + 0x5c]
call fcn.0052eea0
inc esi
add esp, 8
cmp esi, ebp
jl 0x5309c0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5309e4
push eax
call fcn.004a6790
add esp, 4
mov eax, dword [edi + 0x40]
mov dword [edi + 0x24], 1
movzx ecx, word [eax + 0x78]
mov eax, ebx
or eax, 2
cmp dword [edi + 0xc], ecx
cmovle eax, ebx
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059bb21
add esp, 0x88
ret