Function at 0x1005b550
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
xor eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], eax
xor edx, edx
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, 0xa4
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0x14], ecx
xor edi, edi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], edx
mov dword [eax + 0x1c], 0xffffffff
test ecx, ecx
je 0x1005b5f5
test byte [ebx + 0x18], 6
je 0x1005b5b2
mov dword [esp + 0x28], edx
jmp 0x1005b5f5
mov eax, dword [esp + 0x2c]
xor esi, esi
mov ebx, dword [eax + 0x14]
test ebx, ebx
jle 0x1005b5f2
mov edi, dword [eax + 0x10]
mov edx, ecx
mov ecx, dword [edi]
call fcn.1002d7e0
test eax, eax
je 0x1005b5dd
mov ecx, dword [esp + 0x28]
inc esi
add edi, 0x10
cmp esi, ebx
jl 0x1005b5c2
jmp 0x1005b5ee
mov ecx, dword [esp + 0x2c]
add esi, esi
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*8 + 0xc]
mov dword [esp + 0x30], eax
xor edx, edx
xor edi, edi
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x54], ecx
test ecx, ecx
je 0x1005b90c
xor esi, esi
lea eax, [ecx + 8]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
cmp dword [ecx], esi
jle 0x1005b8e5
nop dword [eax]
mov ebx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x34], ecx
test ebx, ebx
je 0x1005b6be
test dword [ebx + 4], 0x800
je 0x1005b6be
mov ebx, dword [ebx + 0x1c]
xor esi, esi
mov dword [esp + 0x40], 0
cmp dword [ebx], esi
jle 0x1005b6ad
lea edi, [ebx + 4]
push dword [esp + 0x28]
mov edx, dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.1005b480
add esp, 8
test eax, eax
je 0x1005b691
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], 2
mov word [eax + 0x20], si
mov eax, 1
mov dword [esp + 0x40], eax
jmp 0x1005b695
mov eax, dword [esp + 0x40]
inc esi
add edi, 0x14
cmp esi, dword [ebx]
jl 0x1005b653
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x1005b8c1
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x24]
test edx, edx
je 0x1005b8c5
jmp 0x1005b6c1
mov edx, dword [ebp + 8]
cmp dword [esp + 0x28], 0
mov ebx, dword [esp + 0x20]
je 0x1005b6d9
mov edi, dword [esp + 0x30]
cmp dword [ecx + 0x48], edi
jne 0x1005b8c5
test edx, edx
je 0x1005b74c
mov edi, dword [eax + 0xc]
mov edx, edi
test edi, edi
jne 0x1005b6e8
mov edx, dword [ecx]
mov esi, dword [ebp + 8]
sub esi, edx
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x1005b72d
test ecx, ecx
jne 0x1005b743
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xc8], 2
jb 0x1005b74c
test edi, edi
je 0x1005b74c
mov eax, dword [eax + 0x110]
test eax, eax
je 0x1005b74c
mov ecx, dword [ebp + 0x14]
add ecx, 0x2c
cmp dword [eax], ecx
je 0x1005b746
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x1005b720
jmp 0x1005b74c
movzx eax, byte [eax + 0x103d7358]
movzx ecx, byte [ecx + 0x103d7358]
sub ecx, eax
jne 0x1005b8bd
inc edx
jmp 0x1005b6f0
mov dword [eax], 0
mov ecx, dword [esp + 0x34]
inc dword [esp + 0x20]
test ebx, ebx
mov edi, dword [esp + 0x1c]
cmovne edi, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [ecx + 4]
movsx ecx, word [ecx + 0x2a]
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], eax
test ecx, ecx
jle 0x1005b822
nop dword [eax]
mov edi, dword [ebp + 0xc]
mov edx, dword [eax]
sub edi, edx
movzx eax, byte [edx]
movzx esi, byte [edi + edx]
cmp eax, esi
jne 0x1005b82f
test eax, eax
jne 0x1005b841
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
cmp edx, 1
jne 0x1005b87e
test byte [ecx + 0x24], 4
jne 0x1005b7fa
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x1005b87e
mov ecx, dword [eax + 4]
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], ecx
test ecx, ecx
jle 0x1005b87a
mov ebx, dword [eax]
nop dword [eax]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebx]
sub edi, edx
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x1005b847
test eax, eax
jne 0x1005b859
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
inc ebx
mov eax, dword [esp + 0x4c]
add eax, 0x14
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], eax
movsx ecx, word [edx + 0x2a]
cmp ebx, ecx
jl 0x1005b780
mov edi, dword [esp + 0x18]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
jmp 0x1005b8c9
movzx ecx, byte [eax + 0x103d7358]
movzx eax, byte [esi + 0x103d7358]
sub ecx, eax
jne 0x1005b7fa
inc edx
jmp 0x1005b787
movzx ecx, byte [eax + 0x103d7358]
movzx eax, byte [esi + 0x103d7358]
sub ecx, eax
jne 0x1005b85c
inc edx
jmp 0x1005b7e7
mov ecx, dword [esp + 0x48]
add ebx, 8
inc ecx
mov dword [esp + 0x48], ecx
cmp ecx, dword [esp + 0x50]
jl 0x1005b7e0
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
inc edx
mov edi, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edi
movsx eax, word [eax + 0x28]
cmp ebx, eax
jne 0x1005b8a9
mov ecx, dword [ebp + 0x14]
or eax, 0xffffffff
mov esi, dword [esp + 0x24]
mov word [ecx + 0x20], ax
mov eax, dword [esp + 0x1c]
jmp 0x1005b8cd
mov ecx, dword [ebp + 0x14]
mov esi, dword [esp + 0x24]
movzx eax, bx
mov word [ecx + 0x20], ax
mov eax, dword [esp + 0x1c]
jmp 0x1005b8cd
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
inc esi
add eax, 0x48
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
cmp esi, dword [ecx]
jl 0x1005b620
test edi, edi
je 0x1005b90c
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi + 0x2c]
mov dword [ecx + 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x2c], eax
test byte [edi + 0x24], 8
je 0x1005b905
or dword [ecx + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x28], 0
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x20]
jne 0x1005bba3
test esi, esi
je 0x1005bba3
test eax, eax
jne 0x1005bba3
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x78], 0
je 0x1005b9b1
mov bl, byte [eax + 0x90]
cmp bl, 0x7e
je 0x1005b983
mov edx, 0x103db6c0
mov edi, esi
sub edi, edx
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x1005b96b
test eax, eax
jne 0x1005b97d
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x1c], 1
jmp 0x1005b9a6
movzx ecx, byte [eax + 0x103d7358]
movzx eax, byte [esi + 0x103d7358]
sub ecx, eax
jne 0x1005b980
inc edx
jmp 0x1005b950
mov esi, dword [ebp + 8]
cmp bl, 0x7d
je 0x1005b9b1
mov edx, 0x103db6c4
mov edi, esi
sub edi, edx
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x1005b9f5
test eax, eax
jne 0x1005ba07
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
test dword [eax + 0x18], 0x200
je 0x1005ba1f
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x1005ba1f
mov edi, dword [ebp + 8]
mov edx, str.excluded
sub edi, edx
nop
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x1005ba0a
test eax, eax
jne 0x1005ba1c
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x1c], eax
mov dword [ecx + 0x1c], 2
jmp 0x1005ba23
movzx ecx, byte [eax + 0x103d7358]
movzx eax, byte [esi + 0x103d7358]
sub ecx, eax
jne 0x1005b9b1
inc edx
jmp 0x1005b991
movzx ecx, byte [eax + 0x103d7358]
movzx eax, byte [esi + 0x103d7358]
sub ecx, eax
jne 0x1005ba1f
inc edx
jmp 0x1005b9d0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1005bb98
movsx edi, word [eax + 0x2a]
xor esi, esi
mov ecx, dword [eax + 0x48]
mov ebx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x4c], edi
test edi, edi
jle 0x1005ba9f
nop dword [eax + eax]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebx]
sub edi, edx
movzx ecx, byte [edx]
movzx eax, byte [edx + edi]
cmp ecx, eax
jne 0x1005ba7e
test ecx, ecx
jne 0x1005ba90
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x4c]
movsx eax, word [ebx + 0x28]
cmp esi, eax
mov eax, 0xffffffff
cmove esi, eax
jmp 0x1005baa3
movzx eax, byte [eax + 0x103d7358]
movzx ecx, byte [ecx + 0x103d7358]
sub ecx, eax
jne 0x1005ba93
inc edx
jmp 0x1005ba57
mov edi, dword [esp + 0x4c]
inc esi
add ebx, 0x14
cmp esi, edi
jl 0x1005ba50
mov ebx, dword [esp + 0x1c]
cmp esi, edi
jl 0x1005baca
mov ecx, dword [ebp + 0xc]
call fcn.10060160
test eax, eax
je 0x1005bac2
test dword [ebx + 0x24], 0x200
mov eax, 0xffffffff
cmove esi, eax
cmp esi, edi
jge 0x1005bb98
mov edi, dword [ebp + 0x14]
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
mov eax, dword [edi + 0x1c]
cmp eax, 2
jne 0x1005bb2c
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
cmp byte [eax + 0xc8], 2
jb 0x1005bb09
mov eax, dword [esp + 0x20]
mov word [edi + 0x20], si
mov esi, dword [ebp + 8]
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x38], 0xa4
jmp 0x1005bba9
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], 0xad
mov eax, dword [eax + 0x18]
add eax, esi
or dword [edi + 4], 0x400000
mov esi, dword [ebp + 8]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x20]
jmp 0x1005bba9
test esi, esi
jns 0x1005bb36
mov byte [edi + 1], 0x44
jmp 0x1005bb80
test eax, eax
jne 0x1005bb63
cmp esi, 0x20
jl 0x1005bb4e
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
or dword [ecx + 0x88], eax
jmp 0x1005bb80
mov ecx, esi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x14]
or dword [ecx + 0x88], eax
jmp 0x1005bb80
cmp esi, 0x20
jl 0x1005bb6d
or eax, 0xffffffff
jmp 0x1005bb76
mov eax, 1
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x14]
or dword [ecx + 0x8c], eax
mov eax, dword [esp + 0x20]
mov word [edi + 0x20], si
mov esi, dword [ebp + 8]
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x38], 0x4d
jmp 0x1005bba6
mov eax, dword [esp + 0x20]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x10]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
test edx, edx
jne 0x1005bbf2
cmp eax, 1
jne 0x1005bbf2
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x1005bbf2
test byte [ecx + 0x18], 0x28
jne 0x1005bbf2
mov ecx, dword [ebp + 0xc]
call fcn.10060160
test eax, eax
je 0x1005bbee
mov eax, dword [ebx + 0x10]
test dword [eax + 0x24], 0x200
jne 0x1005bbee
mov edx, 1
mov byte [edi + 1], 0x44
or eax, 0xffffffff
mov dword [esp + 0x10], edx
mov word [edi + 0x20], ax
jmp 0x1005bbf2
mov edx, dword [esp + 0x10]
mov ebx, dword [ebp + 0x10]
test byte [ebx + 0x18], 0x80
je 0x1005bc5b
test edx, edx
jne 0x1005be53
test esi, esi
jne 0x1005bc63
mov eax, dword [ebx + 8]
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
test ecx, ecx
jle 0x1005bc63
lea esi, [eax + 0x10]
nop dword [eax]
test byte [esi], 3
mov ebx, dword [esi - 8]
jne 0x1005bc4a
mov eax, dword [ebp + 0xc]
test ebx, ebx
jne 0x1005bc35
neg eax
sbb eax, eax
jmp 0x1005bc46
test eax, eax
je 0x1005bc4a
mov edx, eax
mov ecx, ebx
call fcn.1002d7e0
mov ecx, dword [esp + 0x54]
test eax, eax
je 0x1005bc7e
inc edi
add esi, 0x14
cmp edi, ecx
jl 0x1005bc20
mov edx, dword [esp + 0x10]
mov ebx, dword [ebp + 0x10]
jmp 0x1005bc63
test edx, edx
jne 0x1005be53
mov ebx, dword [ebx + 0xc]
inc dword [esp + 0x44]
mov dword [ebp + 0x10], ebx
test ebx, ebx
je 0x1005bd6b
mov edi, dword [esp + 0x18]
jmp 0x1005b5f5
mov esi, dword [ebp + 0x10]
lea eax, [edi + edi*4]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
mov eax, dword [edx + eax*4 + 4]
test cl, 1
jne 0x1005bcb7
test byte [eax + 4], 0x10
je 0x1005bcb7
push ebx
push str.misuse_of_aliased_aggregate__s
push dword [esp + 0x1c]
call fcn.1002d6b0
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [eax + 4], 0x8000
je 0x1005bcd6
test ecx, 0x4000
je 0x1005bcce
cmp esi, dword [esp + 0x3c]
je 0x1005bcd6
push ebx
push str.misuse_of_aliased_window_function__s
jmp 0x1005bc9f
mov cl, byte [eax]
cmp cl, 0xad
jne 0x1005bce0
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x1005bcea
mov eax, dword [eax + 0x14]
jmp 0x1005bcf5
cmp cl, 0x88
jne 0x1005bd17
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
cmp dword [eax], 1
je 0x1005bd17
push str.row_value_misused
push dword [esp + 0x18]
call fcn.1002d6b0
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x44]
mov ebx, dword [ebp + 0x14]
mov esi, dword [esp + 0x14]
mov ecx, esi
push eax
push 0x103d28b0
push ebx
push edi
call fcn.1005b360
add esp, 0x10
cmp byte [esi + 0xc8], 2
jb 0x1005bfdc
mov eax, dword [esi + 0x110]
test eax, eax
je 0x1005bfdc
nop
cmp dword [eax], ebx
je 0x1005bd60
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x1005bd50
jmp 0x1005bfdc
mov dword [eax], 0
jmp 0x1005bfdc
mov edx, dword [ebp + 8]
test edx, edx
jne 0x1005be5f
mov edi, dword [ebp + 0x14]
mov ebx, dword [edi + 4]
test bl, 0x40
je 0x1005bdf6
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0xa5], dl
jne 0x1005bdce
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
test dword [eax + 0x18], 0x10000
je 0x1005bdc3
mov eax, ecx
and eax, 0x10000001
cmp eax, 1
jne 0x1005bdbb
mov eax, ecx
and eax, 0x40000000
or eax, edx
jne 0x1005bdce
and ecx, 0x20000000
jmp 0x1005bdc9
and ecx, 0x40000000
or ecx, 0
je 0x1005bdf6
push dword [ebp + 0xc]
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.1002cbe0
add esp, 0xc
mov byte [edi], 0x73
mov dword [edi + 0x2c], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, 0x4000000
jne 0x1005be5f
mov esi, dword [edi + 8]
mov edx, str.true
mov ecx, esi
call fcn.1002d7e0
test eax, eax
jne 0x1005be2a
mov eax, 0x10000000
mov byte [edi], 0xa7
or ebx, eax
mov eax, 1
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.false
mov ecx, esi
call fcn.1002d7e0
test eax, eax
jne 0x1005be5c
mov eax, 0x20000000
mov byte [edi], 0xa7
or ebx, eax
mov eax, 1
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 1
je 0x1005beee
mov edx, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov ecx, str.ambiguous_column_name
mov ebx, dword [esp + 0x28]
test edi, edi
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [ebp + 0xc]
push ecx
test ebx, ebx
je 0x1005bea3
push edx
push ebx
push eax
push str._s:__s._s._s
push dword [esp + 0x28]
call fcn.1002d6b0
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x3c]
inc dword [eax + 0x14]
jmp 0x1005bef2
test edx, edx
je 0x1005becb
push edx
push eax
push str._s:__s._s
push dword [esp + 0x24]
call fcn.1002d6b0
mov eax, dword [esp + 0x28]
add esp, 0x14
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x3c]
inc dword [eax + 0x14]
jmp 0x1005bef2
push eax
push str._s:__s
push dword [esp + 0x20]
call fcn.1002d6b0
mov eax, dword [esp + 0x24]
add esp, 0x10
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x3c]
inc dword [eax + 0x14]
jmp 0x1005bef2
mov edi, dword [esp + 0x10]
mov ebx, dword [ebp + 0x14]
movzx eax, word [ebx + 0x20]
test ax, ax
js 0x1005bf94
cmp dword [esp + 0x18], 0
je 0x1005bf94
mov esi, dword [ebx + 0x2c]
movsx edx, ax
test byte [esi + 0x24], 0x60
je 0x1005bf6a
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
test byte [eax + ecx*4 + 0x10], 0x60
je 0x1005bf6a
movzx eax, word [esi + 0x2a]
cmp ax, 0x40
jl 0x1005bf42
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
or edx, 0xffffffff
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
jmp 0x1005bf94
xor ecx, ecx
cwde
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0x18]
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
jmp 0x1005bf94
cmp edx, 0x40
mov eax, 0x3f
cmovge edx, eax
xor eax, eax
bts eax, edx
xor ecx, ecx
cmp edx, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edx, 0x40
mov edx, dword [esp + 0x18]
cmovae ecx, eax
or dword [edx + 0x38], eax
or dword [edx + 0x3c], ecx
mov edx, dword [ebx + 0xc]
mov esi, dword [esp + 0x2c]
test edx, edx
je 0x1005bfa6
mov ecx, esi
call fcn.1005ea40
mov edx, dword [ebx + 0x10]
mov dword [ebx + 0xc], 0
test edx, edx
je 0x1005bfbb
mov ecx, esi
call fcn.1005ea40
mov eax, dword [esp + 0x38]
or dword [ebx + 4], 0x800000
mov dword [ebx + 0x10], 0
mov byte [ebx], al
cmp edi, 1
jne 0x1005bcab
mov esi, dword [esp + 0x14]
test dword [ebx + 4], 0x400000
jne 0x1005c0a2
mov eax, dword [esi]
mov ebx, dword [ebp + 0x10]
cmp dword [eax + 0x150], 0
mov ebx, dword [ebx + 4]
je 0x1005c0a2
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1005c0a2
mov eax, dword [eax + 0x10]
xor edx, edx
add eax, 0xc
cmp dword [eax], ecx
je 0x1005c026
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x1005c016
test edx, edx
js 0x1005c0a2
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0x4d
jne 0x1005c033
mov esi, dword [esi + 0x78]
jmp 0x1005c059
mov esi, dword [ebx]
xor eax, eax
test esi, esi
jle 0x1005c0a2
mov edi, dword [edi + 0x1c]
lea ecx, [ebx + 0x34]
cmp edi, dword [ecx]
je 0x1005c04f
inc eax
add ecx, 0x48
cmp eax, esi
jl 0x1005c041
jmp 0x1005c0a2
mov edi, dword [ebp + 0x14]
lea eax, [eax + eax*8]
mov esi, dword [ebx + eax*8 + 0x18]
test esi, esi
je 0x1005c0a2
movsx eax, word [edi + 0x20]
test eax, eax
js 0x1005c070
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
jmp 0x1005c08a
movzx eax, word [esi + 0x28]
test ax, ax
js 0x1005c085
cwde
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
jmp 0x1005c08a
mov eax, str.ROWID
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esi]
push eax
call fcn.1006a0d0
add esp, 8
cmp eax, 2
jne 0x1005c0a2
mov byte [edi], 0x77
mov ecx, dword [esp + 0x3c]
mov eax, dword [ebp + 0x10]
inc dword [ecx + 0x10]
cmp ecx, eax
je 0x1005c0ba
mov ecx, dword [ecx + 0xc]
inc dword [ecx + 0x10]
cmp ecx, eax
jne 0x1005c0b0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret