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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
mov ebx, dword [ecx]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [esp + 0xc], ecx
mov ecx, 0xa4
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ecx
mov dword [edi + 0x1c], 0xffffffff
test edx, edx
je 0x4746f6
test byte [eax + 0x18], 6
je 0x4746b4
mov dword [esp + 0x24], esi
jmp 0x4746f6
mov ebx, dword [ebx + 0x14]
xor esi, esi
test ebx, ebx
jle 0x4746f4
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0x10]
mov ecx, dword [edi]
call fcn.0043e6c0
test eax, eax
je 0x4746dd
mov edx, dword [esp + 0x24]
inc esi
add edi, 0x10
cmp esi, ebx
jl 0x4746c4
jmp 0x4746ee
mov ecx, dword [esp + 0x28]
add esi, esi
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*8 + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
xor esi, esi
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x4749fd
xor edx, edx
lea eax, [ecx + 8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
cmp dword [ecx], edx
jle 0x4749d9
nop word [eax + eax]
mov ebx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x4747be
test dword [ebx + 4], 0x800
je 0x4747be
mov ebx, dword [ebx + 0x1c]
xor esi, esi
mov dword [esp + 0x3c], 0
cmp dword [ebx], esi
jle 0x4747b1
lea edi, [ebx + 4]
push dword [esp + 0x24]
mov edx, dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.00474510
add esp, 8
test eax, eax
je 0x474791
mov eax, dword [esp + 0x14]
inc dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], 2
mov word [eax + 0x20], si
mov eax, 1
mov dword [esp + 0x3c], eax
jmp 0x474795
mov eax, dword [esp + 0x3c]
inc esi
add edi, 0x14
cmp esi, dword [ebx]
jl 0x474753
mov edx, dword [esp + 0x20]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x4749ba
mov ecx, dword [esp + 0x30]
mov esi, dword [ebp + 8]
test esi, esi
je 0x4749ba
jmp 0x4747c1
mov esi, dword [ebp + 8]
cmp dword [esp + 0x24], 0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x44], ebx
je 0x4747dd
mov ebx, dword [esp + 0x2c]
cmp dword [ecx + 0x48], ebx
jne 0x4749ba
test esi, esi
je 0x47484c
mov ebx, dword [eax + 0xc]
mov edx, ebx
test ebx, ebx
jne 0x4747ec
mov edx, dword [ecx]
mov edi, esi
sub edi, edx
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x47482d
test eax, eax
jne 0x474843
mov eax, dword [esp + 0xc]
cmp byte [eax + 0xc8], 2
jb 0x47484c
test ebx, ebx
je 0x47484c
mov eax, dword [eax + 0x110]
test eax, eax
je 0x47484c
mov ecx, dword [ebp + 0x14]
add ecx, 0x2c
cmp dword [eax], ecx
je 0x474846
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x474820
jmp 0x47484c
movzx ecx, byte [eax + 0x51b350]
movzx eax, byte [esi + 0x51b350]
sub ecx, eax
jne 0x4749b2
inc edx
jmp 0x4747f0
mov dword [eax], 0
mov ecx, dword [esp + 0x30]
inc dword [esp + 0x1c]
cmp dword [esp + 0x44], 0
mov ebx, dword [esp + 0x14]
mov esi, ebx
cmovne esi, dword [esp + 0x10]
xor edi, edi
mov eax, dword [ecx + 4]
movsx ecx, word [ecx + 0x2a]
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], eax
test ecx, ecx
jle 0x47491f
mov esi, dword [ebp + 0xc]
mov edx, dword [eax]
sub esi, edx
nop dword [eax + eax]
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x47492c
test ecx, ecx
jne 0x47493e
mov edx, dword [esp + 0x18]
cmp edx, 1
jne 0x474973
test byte [ebx + 0x24], 4
jne 0x4748f7
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x474973
mov ecx, dword [eax + 4]
xor ebx, ebx
mov dword [esp + 0x48], ecx
test ecx, ecx
jle 0x47496f
mov edi, dword [eax]
mov esi, dword [ebp + 0xc]
mov edx, dword [edi]
sub esi, edx
nop
movzx eax, byte [edx]
movzx ecx, byte [esi + edx]
cmp eax, ecx
jne 0x474944
test eax, eax
jne 0x474956
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
inc edi
mov eax, dword [esp + 0x44]
add eax, 0x14
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], eax
movsx ecx, word [edx + 0x2a]
cmp edi, ecx
jl 0x474881
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
jmp 0x4749be
movzx eax, byte [eax + 0x51b350]
movzx ecx, byte [ecx + 0x51b350]
sub ecx, eax
jne 0x4748f7
inc edx
jmp 0x474890
movzx ecx, byte [ecx + 0x51b350]
movzx eax, byte [eax + 0x51b350]
sub eax, ecx
jne 0x474959
inc edx
jmp 0x4748e0
inc ebx
add edi, 8
cmp ebx, dword [esp + 0x48]
jl 0x4748d8
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
inc edx
mov esi, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
movsx eax, word [eax + 0x28]
cmp edi, eax
jne 0x47499e
mov edi, dword [ebp + 0x14]
or eax, 0xffffffff
mov edx, dword [esp + 0x20]
mov word [edi + 0x20], ax
mov eax, dword [esp + 0x14]
jmp 0x4749c1
mov edx, dword [esp + 0x20]
movzx eax, di
mov edi, dword [ebp + 0x14]
mov word [edi + 0x20], ax
mov eax, dword [esp + 0x14]
jmp 0x4749c1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov edi, dword [ebp + 0x14]
mov ecx, dword [esp + 0x4c]
inc edx
add eax, 0x48
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
cmp edx, dword [ecx]
jl 0x474720
test esi, esi
je 0x4749fd
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x2c], eax
test byte [esi + 0x24], 8
je 0x4749f6
or dword [edi + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x24], 0
mov esi, dword [esp + 0x1c]
jne 0x474cdc
mov eax, dword [ebp + 8]
test eax, eax
je 0x474cdc
test esi, esi
jne 0x474cdc
mov ecx, dword [esp + 0xc]
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp dword [ecx + 0x78], ebx
je 0x474ac8
mov bl, byte [ecx + 0x90]
cmp bl, 0x7e
je 0x474a81
mov edx, 0x52380c
mov esi, eax
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x474a69
test ecx, ecx
jne 0x474a7b
mov ebx, dword [esp + 0xc]
mov dword [edi + 0x1c], 1
mov ebx, dword [ebx + 0x78]
mov dword [esp + 0x20], ebx
jmp 0x474ac8
movzx eax, byte [eax + 0x51b350]
movzx ecx, byte [ecx + 0x51b350]
sub ecx, eax
jne 0x474a7e
inc edx
jmp 0x474a46
mov eax, dword [ebp + 8]
cmp bl, 0x7d
je 0x474ac4
mov edx, 0x523810
mov esi, eax
sub esi, edx
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x474aaf
test ecx, ecx
jne 0x474ac1
mov ebx, dword [esp + 0xc]
mov dword [edi + 0x1c], ecx
mov ebx, dword [ebx + 0x78]
mov dword [esp + 0x20], ebx
jmp 0x474ac8
movzx eax, byte [eax + 0x51b350]
movzx ecx, byte [ecx + 0x51b350]
sub ecx, eax
jne 0x474ac4
inc edx
jmp 0x474a90
mov ebx, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
test dword [eax + 0x18], 0x200
je 0x474b10
mov edi, dword [eax + 8]
test edi, edi
je 0x474b10
mov esi, dword [ebp + 8]
mov edx, str.excluded
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x474b77
test ecx, ecx
jne 0x474b89
mov eax, dword [edi + 0x14]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [eax + 0x1c], 2
test ebx, ebx
je 0x474cd8
mov eax, dword [ebx + 0x48]
mov esi, 1
movsx ecx, word [ebx + 0x2a]
xor edi, edi
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], ecx
test ecx, ecx
jle 0x474bc0
mov ebx, dword [ebp + 0xc]
mov edx, dword [eax]
sub ebx, edx
nop dword [eax + eax]
movzx eax, byte [edx]
movzx esi, byte [ebx + edx]
cmp eax, esi
jne 0x474b8f
test eax, eax
jne 0x474ba1
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
movsx eax, word [ebx + 0x28]
cmp edi, eax
mov eax, 0xffffffff
cmove edi, eax
jmp 0x474bbc
movzx eax, byte [eax + 0x51b350]
movzx ecx, byte [ecx + 0x51b350]
sub ecx, eax
jne 0x474b10
inc edx
jmp 0x474ae5
movzx ecx, byte [eax + 0x51b350]
movzx eax, byte [esi + 0x51b350]
sub ecx, eax
jne 0x474ba4
inc edx
jmp 0x474b50
mov eax, dword [esp + 0x44]
inc edi
mov ecx, dword [esp + 0x30]
add eax, 0x14
mov dword [esp + 0x44], eax
cmp edi, ecx
jl 0x474b41
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp edi, ecx
jl 0x474beb
mov ecx, dword [ebp + 0xc]
call fcn.00479de0
mov ecx, dword [esp + 0x30]
test eax, eax
je 0x474be3
test dword [ebx + 0x24], 0x200
mov eax, 0xffffffff
cmove edi, eax
cmp edi, ecx
jge 0x474cdc
mov ecx, dword [ebp + 0x14]
inc dword [esp + 0x18]
mov eax, dword [ecx + 0x1c]
cmp eax, 2
jne 0x474c3d
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
cmp byte [eax + 0xc8], 2
jb 0x474c1e
mov word [ecx + 0x20], di
mov dword [ecx + 0x2c], ebx
mov dword [esp + 0x34], 0xa4
jmp 0x474cdf
mov eax, dword [edx + 8]
mov dword [esp + 0x34], 0xad
mov eax, dword [eax + 0x18]
add eax, edi
or dword [ecx + 4], 0x400000
mov dword [ecx + 0x1c], eax
jmp 0x474cdf
test edi, edi
jns 0x474c59
mov byte [ecx + 1], 0x44
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
mov dword [esp + 0x34], 0x4d
jmp 0x474cdc
test eax, eax
jne 0x474ca7
cmp edi, 0x20
jl 0x474c80
mov edx, dword [esp + 0xc]
or eax, 0xffffffff
mov dword [esp + 0x34], 0x4d
or dword [edx + 0x88], eax
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
jmp 0x474cdc
mov edx, dword [esp + 0xc]
mov ecx, edi
mov eax, 1
mov dword [esp + 0x34], 0x4d
shl eax, cl
mov ecx, dword [ebp + 0x14]
or dword [edx + 0x88], eax
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
jmp 0x474cdc
cmp edi, 0x20
jl 0x474cb1
or eax, 0xffffffff
jmp 0x474cbd
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x34], 0x4d
or dword [edx + 0x8c], eax
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
jmp 0x474cdc
mov esi, dword [esp + 0x1c]
mov edx, dword [ebp + 0x10]
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x474d2d
cmp esi, 1
mov esi, dword [ebp + 0xc]
jne 0x474d30
mov edi, dword [esp + 0x10]
test edi, edi
je 0x474d30
test byte [edx + 0x18], 0x28
jne 0x474d30
mov ecx, esi
call fcn.00479de0
test eax, eax
je 0x474d30
mov eax, dword [edi + 0x10]
test dword [eax + 0x24], 0x200
jne 0x474d30
mov eax, dword [ebp + 0x14]
mov ebx, 1
or ecx, 0xffffffff
mov dword [esp + 0x18], ebx
mov word [eax + 0x20], cx
mov byte [eax + 1], 0x44
jmp 0x474d30
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
test byte [edi + 0x18], 0x80
je 0x474dc8
test ebx, ebx
jne 0x475010
mov edx, dword [ebp + 8]
test edx, edx
jne 0x474dd3
mov ecx, dword [edi + 8]
mov dword [esp + 0x44], edx
mov eax, dword [ecx]
mov dword [esp + 0x4c], eax
test eax, eax
jle 0x474dd0
lea edi, [ecx + 0x10]
test byte [edi], 3
mov ebx, dword [edi - 8]
jne 0x474d9e
test ebx, ebx
jne 0x474d78
mov ecx, esi
neg ecx
sbb ecx, ecx
jmp 0x474d9a
test esi, esi
je 0x474d9e
mov edx, ebx
sub esi, ebx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x474db3
test ecx, ecx
jne 0x474dc5
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x474df4
inc edx
add edi, 0x14
mov dword [esp + 0x44], edx
cmp edx, eax
jl 0x474d64
mov ebx, dword [esp + 0x18]
mov edi, dword [ebp + 0x10]
jmp 0x474dd0
movzx eax, byte [eax + 0x51b350]
movzx ecx, byte [ecx + 0x51b350]
sub ecx, eax
jne 0x474d8f
inc edx
jmp 0x474d80
test ebx, ebx
jne 0x475010
mov edx, dword [ebp + 8]
mov edi, dword [edi + 0xc]
inc dword [esp + 0x40]
mov dword [ebp + 0x10], edi
test edi, edi
je 0x474ee1
mov edi, dword [ebp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
jmp 0x4746f6
mov ecx, dword [ebp + 0x10]
lea eax, [edx + edx*4]
test byte [ecx + 0x18], 1
mov esi, dword [ecx + 8]
mov eax, dword [esi + eax*4 + 4]
jne 0x474e2b
test byte [eax + 4], 0x10
je 0x474e2b
push ebx
push str.misuse_of_aliased_aggregate__s
push dword [esp + 0x14]
call fcn.0043e570
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [eax + 4], 0x8000
je 0x474e4b
test dword [ecx + 0x18], 0x4000
je 0x474e43
cmp ecx, dword [esp + 0x38]
je 0x474e4b
push ebx
push str.misuse_of_aliased_window_function__s
jmp 0x474e13
mov cl, byte [eax]
cmp cl, 0xad
jne 0x474e55
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x474e5f
mov eax, dword [eax + 0x14]
jmp 0x474e6a
cmp cl, 0x88
jne 0x474e8c
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
cmp dword [eax], 1
je 0x474e8c
push str.row_value_misused
push dword [esp + 0x10]
call fcn.0043e570
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x40]
mov edi, dword [ebp + 0x14]
push eax
push 0x517749
push edi
push edx
mov edx, esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00474370
add esp, 0x10
cmp byte [esi + 0xc8], 2
jb 0x47517c
mov eax, dword [esi + 0x110]
test eax, eax
je 0x47517c
cmp dword [eax], edi
je 0x474ed6
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x474ec6
jmp 0x47517c
mov dword [eax], 0
jmp 0x47517c
test edx, edx
jne 0x475027
mov edi, dword [ebp + 0x14]
mov ebx, dword [edi + 4]
test bl, 0x40
je 0x474f6b
mov eax, dword [esp + 0x28]
cmp byte [eax + 0xa5], dl
jne 0x474f45
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
test dword [eax + 0x18], 0x10000
je 0x474f3a
mov eax, ecx
and eax, 0x10000001
cmp eax, 1
jne 0x474f32
mov eax, ecx
and eax, 0x40000000
or eax, edx
jne 0x474f45
and ecx, 0x20000000
jmp 0x474f40
and ecx, 0x40000000
or ecx, 0
je 0x474f6b
push esi
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.0043d780
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 0x47501a
mov edx, dword [edi + 8]
mov edi, str.true
mov esi, edx
sub edi, edx
movzx ecx, byte [esi]
movzx eax, byte [edi + esi]
cmp ecx, eax
jne 0x474fae
test ecx, ecx
jne 0x474fc0
mov ecx, dword [ebp + 0x14]
mov eax, 0x10000000
or ebx, eax
mov eax, 1
mov byte [ecx], 0xa7
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [eax + 0x51b350]
movzx ecx, byte [ecx + 0x51b350]
sub ecx, eax
jne 0x474fc3
inc esi
jmp 0x474f83
mov esi, str.false
sub esi, edx
nop word [eax + eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x474ffb
test ecx, ecx
jne 0x47500d
mov ecx, dword [ebp + 0x14]
mov eax, 0x20000000
or ebx, eax
mov eax, 1
mov byte [ecx], 0xa7
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [eax + 0x51b350]
movzx ecx, byte [ecx + 0x51b350]
sub ecx, eax
jne 0x475020
inc edx
jmp 0x474fd0
cmp ebx, 1
jne 0x475024
jmp 0x475092
mov ebx, dword [esp + 0x18]
jmp 0x475027
mov ebx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x24]
test ebx, ebx
mov ecx, str.ambiguous_column_name
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [ebp + 0xc]
push ecx
test esi, esi
je 0x475058
push edx
push esi
push eax
push str._s:__s._s._s
push dword [esp + 0x20]
call fcn.0043e570
add esp, 0x18
jmp 0x475083
test edx, edx
je 0x475071
push edx
push eax
push str._s:__s._s
push dword [esp + 0x1c]
call fcn.0043e570
add esp, 0x14
jmp 0x475083
push eax
push str._s:__s
push dword [esp + 0x18]
call fcn.0043e570
add esp, 0x10
mov eax, dword [esp + 0xc]
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x38]
inc dword [eax + 0x14]
mov edi, dword [ebp + 0x14]
movzx eax, word [edi + 0x20]
test ax, ax
js 0x475134
cmp dword [esp + 0x10], 0
je 0x475134
mov esi, dword [edi + 0x2c]
movsx edx, ax
test byte [esi + 0x24], 0x60
je 0x47510a
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
test byte [eax + ecx*4 + 0x10], 0x60
je 0x47510a
movzx eax, word [esi + 0x2a]
cmp ax, 0x40
jl 0x4750e2
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
or edx, 0xffffffff
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
jmp 0x475134
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 + 0x10]
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
jmp 0x475134
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 + 0x10]
cmovae ecx, eax
or dword [edx + 0x38], eax
or dword [edx + 0x3c], ecx
mov edx, dword [edi + 0xc]
mov esi, dword [esp + 0x28]
test edx, edx
je 0x475146
mov ecx, esi
call fcn.00478210
mov edx, dword [edi + 0x10]
mov dword [edi + 0xc], 0
test edx, edx
je 0x47515b
mov ecx, esi
call fcn.00478210
mov ecx, dword [esp + 0x34]
or dword [edi + 4], 0x800000
mov dword [edi + 0x10], 0
mov byte [edi], cl
cmp ebx, 1
jne 0x474e1f
mov esi, dword [esp + 0xc]
test dword [edi + 4], 0x400000
jne 0x475241
mov eax, dword [esi]
mov ebx, dword [ebp + 0x10]
cmp dword [eax + 0x150], 0
mov ebx, dword [ebx + 4]
je 0x475241
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x475241
mov eax, dword [eax + 0x10]
xor edx, edx
add eax, 0xc
cmp dword [eax], ecx
je 0x4751c6
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x4751b6
test edx, edx
js 0x475241
cmp byte [edi], 0x4d
jne 0x4751d0
mov esi, dword [esi + 0x78]
jmp 0x4751f8
mov esi, dword [ebx]
xor eax, eax
test esi, esi
jle 0x475241
mov edi, dword [edi + 0x1c]
lea ecx, [ebx + 0x34]
nop
cmp edi, dword [ecx]
je 0x4751ee
inc eax
add ecx, 0x48
cmp eax, esi
jl 0x4751e0
jmp 0x475241
mov edi, dword [ebp + 0x14]
lea eax, [eax + eax*8]
mov esi, dword [ebx + eax*8 + 0x18]
test esi, esi
je 0x475241
movsx eax, word [edi + 0x20]
test eax, eax
js 0x47520f
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
jmp 0x475229
movzx eax, word [esi + 0x28]
test ax, ax
js 0x475224
cwde
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
jmp 0x475229
mov eax, str.ROWID
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esi]
push eax
call fcn.00484c60
add esp, 8
cmp eax, 2
jne 0x475241
mov byte [edi], 0x77
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp + 0x10]
inc dword [ecx + 0x10]
cmp ecx, eax
je 0x47525a
nop
mov ecx, dword [ecx + 0xc]
inc dword [ecx + 0x10]
cmp ecx, eax
jne 0x475250
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret