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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 0x1c]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0xa4
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], ecx
mov dword [edx + 0x1c], 0xffffffff
test esi, esi
je 0x4a49be
test byte [eax + 0x18], 6
je 0x4a4976
mov dword [ebp + 0xc], edi
jmp 0x4a49be
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
cmp dword [ecx + 0x14], ebx
jle 0x4a49be
mov ecx, dword [ecx + 0x10]
mov eax, ecx
mov dword [ebp - 0x20], ecx
mov edx, dword [eax]
mov edi, esi
sub edi, edx
nop
movzx eax, byte [edx]
movzx esi, byte [edi + edx]
cmp eax, esi
jne 0x4a4a4e
test eax, eax
jne 0x4a4a60
mov ecx, dword [ebp - 0x18]
add ebx, ebx
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*8 + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
xor edi, edi
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4a4c00
xor ecx, ecx
lea esi, [eax + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], esi
cmp dword [eax], ecx
jle 0x4a4bda
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x20], ebx
test eax, eax
je 0x4a4aad
test dword [eax + 4], 0x800
je 0x4a4aad
mov ebx, dword [eax + 0x1c]
xor esi, esi
mov dword [ebp - 0x30], 0
cmp dword [ebx], esi
jle 0x4a4a9a
lea edi, [ebx + 4]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push edi
call fcn.004cd280
add esp, 0x10
test eax, eax
je 0x4a4a84
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], 2
mov word [eax + 0x20], si
mov eax, 1
mov dword [ebp - 0x30], eax
jmp 0x4a4a87
movzx ecx, byte [eax + 0x66d8b0]
movzx eax, byte [esi + 0x66d8b0]
sub ecx, eax
jne 0x4a4a66
inc edx
jmp 0x4a4990
mov ecx, dword [ebp - 0x18]
inc ebx
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x20], eax
cmp ebx, dword [ecx + 0x14]
jge 0x4a49b6
mov esi, dword [ebp + 0xc]
jmp 0x4a4988
mov eax, dword [ebp - 0x30]
inc esi
add edi, 0x14
cmp esi, dword [ebx]
jl 0x4a4a17
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x4a4bbc
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
test eax, eax
je 0x4a4bbf
mov ebx, dword [ebp - 0x20]
jmp 0x4a4ab0
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0xc], 0
je 0x4a4ac2
mov edx, dword [ebp - 0x1c]
cmp dword [ebx + 0x48], edx
jne 0x4a4bbf
test eax, eax
je 0x4a4b3c
mov edi, dword [esi + 0xc]
mov edx, edi
test edi, edi
jne 0x4a4ad5
mov edx, dword [ebx]
mov esi, eax
sub esi, edx
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4a4b1d
test ecx, ecx
jne 0x4a4b33
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x4a4b3c
test edi, edi
je 0x4a4b3c
mov eax, dword [eax + 0x110]
test eax, eax
je 0x4a4b3c
mov ecx, dword [ebp + 0x1c]
add ecx, 0x2c
nop
cmp dword [eax], ecx
je 0x4a4b36
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4a4b10
jmp 0x4a4b3c
movzx eax, byte [eax + 0x66d8b0]
movzx ecx, byte [ecx + 0x66d8b0]
sub ecx, eax
jne 0x4a4bb9
inc edx
jmp 0x4a4ae0
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov eax, ecx
inc ecx
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x4a4b4f
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
xor edi, edi
mov ebx, dword [ebx + 4]
movsx eax, word [eax + 0x2a]
test eax, eax
jle 0x4a4bb9
nop
mov esi, dword [ebp + 0x14]
mov edx, dword [ebx]
sub esi, edx
movzx eax, byte [edx]
movzx ecx, byte [esi + edx]
cmp eax, ecx
jne 0x4a4c69
test eax, eax
jne 0x4a4c7f
mov esi, dword [ebp - 0xc]
cmp esi, 1
jne 0x4a4c85
mov eax, dword [ebp - 8]
test byte [eax + 0x24], 4
jne 0x4a4baa
mov ecx, dword [ebp + 0x14]
push ecx
push dword [eax + 0x34]
call fcn.004a7970
add esp, 8
test eax, eax
je 0x4a4c85
mov ecx, dword [ebp - 0x20]
inc edi
add ebx, 0x14
movsx eax, word [ecx + 0x2a]
cmp edi, eax
jl 0x4a4b60
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x34]
inc ecx
add esi, 0x48
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], esi
cmp ecx, dword [eax]
jl 0x4a49e2
mov edi, dword [ebp - 4]
test edi, edi
je 0x4a4bfd
mov eax, dword [edi + 0x2c]
mov dword [edx + 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [edx + 0x2c], eax
test byte [edi + 0x24], 8
je 0x4a4bf7
or dword [edx + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
jne 0x4a4f3f
test ecx, ecx
je 0x4a4f3f
test esi, esi
jne 0x4a4f3f
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x78], ebx
je 0x4a4d16
movzx edi, byte [eax + 0x90]
cmp edi, 0x7e
je 0x4a4cdf
mov edx, 0x673ae0
mov esi, ecx
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4a4cc4
test ecx, ecx
jne 0x4a4cd6
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x1c], 1
jmp 0x4a4d0d
movzx ecx, byte [ecx + 0x66d8b0]
movzx eax, byte [eax + 0x66d8b0]
sub eax, ecx
jne 0x4a4baa
inc edx
jmp 0x4a4b67
mov eax, dword [ebp - 8]
inc esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], esi
movsx eax, word [eax + 0x28]
cmp edi, eax
jne 0x4a4caf
mov edx, dword [ebp + 0x1c]
or eax, 0xffffffff
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov word [edx + 0x20], ax
jmp 0x4a4bc2
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
movsx eax, di
mov word [edx + 0x20], ax
jmp 0x4a4bc2
movzx eax, byte [eax + 0x66d8b0]
movzx ecx, byte [ecx + 0x66d8b0]
sub ecx, eax
jne 0x4a4cdc
inc edx
jmp 0x4a4c47
mov ecx, dword [ebp + 0x10]
cmp edi, 0x7d
je 0x4a4d16
mov edx, 0x673ae4
mov esi, ecx
sub esi, edx
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4a4dbc
test ecx, ecx
jne 0x4a4dd2
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x1c], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 0x78]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x18]
test dword [eax + 0x18], 0x200
je 0x4a4d5d
mov edi, dword [eax + 8]
test edi, edi
je 0x4a4d5d
mov esi, dword [ebp + 0x10]
mov edx, str.excluded
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4a4dd8
test ecx, ecx
jne 0x4a4dee
mov eax, dword [edi + 0x14]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], ebx
mov dword [eax + 0x1c], 2
test ebx, ebx
je 0x4a4f39
mov eax, dword [ebx + 0x48]
mov esi, 1
movsx ecx, word [ebx + 0x2a]
xor edi, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jle 0x4a4e24
nop word [eax + eax]
mov ebx, dword [ebp + 0x14]
mov edx, dword [eax]
sub ebx, edx
movzx eax, byte [edx]
movzx esi, byte [ebx + edx]
cmp eax, esi
jne 0x4a4df4
test eax, eax
jne 0x4a4e06
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
movsx eax, word [ebx + 0x28]
cmp edi, eax
mov eax, 0xffffffff
cmove edi, eax
jmp 0x4a4e21
movzx eax, byte [eax + 0x66d8b0]
movzx ecx, byte [ecx + 0x66d8b0]
sub ecx, eax
jne 0x4a4d16
inc edx
jmp 0x4a4cf0
movzx eax, byte [eax + 0x66d8b0]
movzx ecx, byte [ecx + 0x66d8b0]
sub ecx, eax
jne 0x4a4d5d
inc edx
jmp 0x4a4d33
movzx ecx, byte [eax + 0x66d8b0]
movzx eax, byte [esi + 0x66d8b0]
sub ecx, eax
jne 0x4a4e09
inc edx
jmp 0x4a4d97
mov eax, dword [ebp - 0x30]
inc edi
mov ecx, dword [ebp - 0x20]
add eax, 0x14
mov dword [ebp - 0x30], eax
cmp edi, ecx
jl 0x4a4d90
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
cmp edi, ecx
jl 0x4a4e51
push dword [ebp + 0x14]
call fcn.004cbb80
mov ecx, dword [ebp - 0x20]
add esp, 4
test eax, eax
je 0x4a4e49
test dword [ebx + 0x24], 0x200
mov eax, 0xffffffff
cmove edi, eax
cmp edi, ecx
jge 0x4a4f3c
mov ecx, dword [ebp + 0x1c]
inc dword [ebp - 0xc]
mov eax, dword [ecx + 0x1c]
cmp eax, 2
jne 0x4a4ea5
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
cmp byte [eax + 0xc8], 2
jb 0x4a4e84
mov word [ecx + 0x20], di
mov edi, dword [ebp - 4]
mov dword [ecx + 0x2c], ebx
mov dword [ebp - 0x24], 0xa4
jmp 0x4a4f42
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], 0xad
mov eax, dword [eax + 0x18]
add eax, edi
or dword [ecx + 4], 0x400000
mov edi, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
jmp 0x4a4f42
test edi, edi
jns 0x4a4ec0
mov byte [ecx + 1], 0x44
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
mov dword [ebp - 0x24], 0x4d
jmp 0x4a4f3c
test eax, eax
jne 0x4a4f0a
cmp edi, 0x20
jl 0x4a4ee5
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 0x24], 0x4d
or dword [edx + 0x88], eax
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
jmp 0x4a4f3c
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, 1
mov dword [ebp - 0x24], 0x4d
shl eax, cl
mov ecx, dword [ebp + 0x1c]
or dword [edx + 0x88], eax
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
jmp 0x4a4f3c
cmp edi, 0x20
jl 0x4a4f14
or eax, 0xffffffff
jmp 0x4a4f20
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], 0x4d
or dword [edx + 0x8c], eax
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
jmp 0x4a4f3c
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp - 0xc]
test ebx, ebx
jne 0x4a4f8c
cmp esi, 1
mov esi, dword [ebp + 0x14]
jne 0x4a4f8f
test edi, edi
je 0x4a4f8f
test byte [edx + 0x18], 0x28
jne 0x4a4f8f
push esi
call fcn.004cbb80
add esp, 4
test eax, eax
je 0x4a4f8f
mov eax, dword [edi + 0x10]
test dword [eax + 0x24], 0x200
jne 0x4a4f8f
mov eax, dword [ebp + 0x1c]
mov ebx, 1
or ecx, 0xffffffff
mov dword [ebp - 0xc], ebx
mov word [eax + 0x20], cx
mov byte [eax + 1], 0x44
jmp 0x4a4f8f
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
test byte [edi + 0x18], 0x80
je 0x4a5027
test ebx, ebx
jne 0x4a5260
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4a5032
mov ecx, dword [edi + 8]
xor edx, edx
mov dword [ebp - 0x30], edx
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x4a502f
lea ebx, [ecx + 0x10]
test byte [ebx], 3
mov edi, dword [ebx - 8]
jne 0x4a4fff
test edi, edi
jne 0x4a4fdb
mov ecx, esi
neg ecx
sbb ecx, ecx
jmp 0x4a4ffb
test esi, esi
je 0x4a4fff
mov edx, edi
sub esi, edi
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4a5012
test ecx, ecx
jne 0x4a5024
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp + 0x14]
test ecx, ecx
je 0x4a5051
inc edx
add ebx, 0x14
mov dword [ebp - 0x30], edx
cmp edx, eax
jl 0x4a4fc7
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 0x18]
jmp 0x4a502f
movzx eax, byte [eax + 0x66d8b0]
movzx ecx, byte [ecx + 0x66d8b0]
sub ecx, eax
jne 0x4a4ff2
inc edx
jmp 0x4a4fe3
test ebx, ebx
jne 0x4a5260
mov ecx, dword [ebp + 0x10]
mov edi, dword [edi + 0xc]
inc dword [ebp - 0x2c]
mov dword [ebp + 0x18], edi
test edi, edi
je 0x4a513c
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
jmp 0x4a49c1
mov ebx, dword [ebp + 0x18]
lea eax, [edx + edx*4]
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0x18]
mov eax, dword [esi + eax*4 + 4]
test cl, 1
jne 0x4a5089
test byte [eax + 4], 0x10
je 0x4a5089
push edi
push str.misuse_of_aliased_aggregate__s
push dword [ebp + 8]
call fcn.004bf410
add esp, 0xc
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
test dword [eax + 4], 0x8000
je 0x4a50a9
test ecx, 0x4000
je 0x4a50a1
mov ecx, dword [ebp - 0x28]
cmp ebx, ecx
je 0x4a50a9
push edi
push str.misuse_of_aliased_window_function__s
jmp 0x4a5072
mov cl, byte [eax]
cmp cl, 0xad
jne 0x4a50b3
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x4a50bd
mov eax, dword [eax + 0x14]
jmp 0x4a50c8
cmp cl, 0x88
jne 0x4a50eb
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
cmp eax, 1
je 0x4a50eb
push str.row_value_misused
push dword [ebp + 8]
call fcn.004bf410
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
push eax
push 0x6bdfb9
push edi
push edx
push esi
push ebx
call fcn.004af9c0
add esp, 0x18
cmp byte [ebx + 0xc8], 2
jb 0x4a53c1
mov eax, dword [ebx + 0x110]
test eax, eax
je 0x4a53c1
cmp dword [eax], edi
je 0x4a5131
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4a5121
jmp 0x4a53c1
mov dword [eax], 0
jmp 0x4a53c1
test ecx, ecx
jne 0x4a526e
mov edi, dword [ebp + 0x1c]
mov ebx, dword [edi + 4]
test bl, 0x40
je 0x4a519a
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xa5], cl
jne 0x4a51d8
mov ecx, dword [ebp - 0x28]
test dword [ecx + 0x18], 0x10000
je 0x4a51cb
mov ecx, dword [eax + 0x20]
xor edx, edx
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x34], eax
mov eax, ecx
and eax, 0x10000001
cmp eax, 1
jne 0x4a5190
test edx, edx
jne 0x4a5190
mov eax, ecx
and eax, 0x40000000
or eax, edx
jne 0x4a51d8
and ecx, 0x20000000
or ecx, edx
jne 0x4a51d8
test ebx, 0x4000000
jne 0x4a526b
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 0x4a51fe
test ecx, ecx
jne 0x4a5210
mov eax, 0x10000000
jmp 0x4a5234
mov eax, dword [eax + 0x20]
and eax, 0x40000000
or eax, 0
je 0x4a519a
push esi
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.0047c160
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
movzx eax, byte [eax + 0x66d8b0]
movzx ecx, byte [ecx + 0x66d8b0]
sub ecx, eax
jne 0x4a5213
inc esi
jmp 0x4a51b2
mov edi, str.false
sub edi, edx
nop word [eax + eax]
movzx eax, byte [edx]
movzx esi, byte [edi + edx]
cmp eax, esi
jne 0x4a524b
test eax, eax
jne 0x4a525d
mov eax, 0x20000000
mov ecx, dword [ebp + 0x1c]
or ebx, eax
pop edi
pop esi
mov eax, 1
mov dword [ecx + 4], ebx
mov byte [ecx], 0xa7
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax + 0x66d8b0]
movzx eax, byte [esi + 0x66d8b0]
sub ecx, eax
jne 0x4a526b
inc edx
jmp 0x4a5220
cmp ebx, 1
je 0x4a52d8
jmp 0x4a526e
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
test ebx, ebx
mov ecx, str.ambiguous_column_name
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [ebp + 0x14]
push ecx
test edx, edx
je 0x4a529f
push dword [ebp + 0x10]
push edx
push eax
push str._s:__s._s._s
push dword [ebp + 8]
call fcn.004bf410
add esp, 0x18
jmp 0x4a52cb
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4a52ba
push edx
push eax
push str._s:__s._s
push dword [ebp + 8]
call fcn.004bf410
add esp, 0x14
jmp 0x4a52cb
push eax
push str._s:__s
push dword [ebp + 8]
call fcn.004bf410
add esp, 0x10
mov eax, dword [ebp + 8]
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x28]
inc dword [eax + 0x14]
mov edi, dword [ebp + 0x1c]
movzx eax, word [edi + 0x20]
test ax, ax
js 0x4a5376
cmp dword [ebp - 4], 0
je 0x4a5376
mov esi, dword [edi + 0x2c]
movsx edx, ax
test byte [esi + 0x24], 0x60
je 0x4a534d
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
test byte [eax + ecx*4 + 0x10], 0x60
je 0x4a534d
movzx eax, word [esi + 0x2a]
cmp ax, 0x40
jl 0x4a5326
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
or edx, 0xffffffff
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
jmp 0x4a5376
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 [ebp - 4]
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
jmp 0x4a5376
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 [ebp - 4]
cmovae ecx, eax
or dword [edx + 0x38], eax
or dword [edx + 0x3c], ecx
mov eax, dword [edi + 0xc]
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x4a538a
push eax
push esi
call fcn.004c2960
add esp, 8
mov eax, dword [edi + 0x10]
mov dword [edi + 0xc], 0
test eax, eax
je 0x4a53a2
push eax
push esi
call fcn.004c2960
add esp, 8
mov ecx, dword [ebp - 0x24]
or dword [edi + 4], 0x800000
mov dword [edi + 0x10], 0
mov byte [edi], cl
cmp ebx, 1
jne 0x4a507d
mov ebx, dword [ebp + 8]
test dword [edi + 4], 0x400000
jne 0x4a53dd
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
push dword [ebp - 0x1c]
push edi
push ebx
call fcn.004b59e0
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x18]
inc dword [ecx + 0x10]
cmp ecx, eax
je 0x4a53fa
nop word [eax + eax]
mov ecx, dword [ecx + 0xc]
inc dword [ecx + 0x10]
cmp ecx, eax
jne 0x4a53f0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret