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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
xor eax, eax
push ebx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0x1c]
push esi
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 0xa4
mov dword [edx + 0x1c], 0xffffffff
cmp dword [ebp + 0xc], eax
je 0x50a310
mov eax, ecx
test byte [eax + 0x18], 6
je 0x50a286
mov dword [ebp + 0xc], 0
jmp 0x50a310
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x50a2cc
mov ebx, dword [ecx + 0x10]
mov eax, dword [ebx]
mov esi, dword [ebp + 0xc]
sub esi, eax
nop
movzx ecx, byte [eax]
movzx edx, byte [esi + eax]
cmp ecx, edx
jne 0x50a3e0
test ecx, ecx
jne 0x50a3f2
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov edx, edi
shl edx, 4
mov ecx, dword [edx + eax + 0xc]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
cmp edi, eax
jne 0x50a310
mov esi, dword [ebp + 0xc]
mov ecx, str.main
sub esi, ecx
lea ebx, [ebx]
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x50a40c
test eax, eax
jne 0x50a422
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x24], edx
mov dword [ebp + 0xc], eax
jmp 0x50a310
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x50a58b
cmp dword [ecx], 0
lea eax, [ecx + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], eax
jle 0x50a562
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 8], edx
test eax, eax
je 0x50a3b3
test dword [eax + 4], 0x800
je 0x50a3b3
mov eax, dword [eax + 0x1c]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x28], eax
cmp dword [eax], esi
jle 0x50a3a9
lea ebx, [eax + 4]
mov edi, edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push eax
push ecx
push edx
mov eax, ebx
call fcn.004b6370
add esp, 0xc
test eax, eax
je 0x50a396
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x1c]
mov esi, 1
add dword [ebp - 0x10], esi
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x14], eax
mov word [ecx + 0x20], di
mov edx, dword [ebp - 0x28]
inc edi
add ebx, 0x14
cmp edi, dword [edx]
jl 0x50a360
test esi, esi
jne 0x50a547
cmp dword [ebp + 0x10], 0
je 0x50a547
cmp dword [ebp + 0xc], 0
je 0x50a3c8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x48]
cmp ecx, dword [ebp - 0x24]
jne 0x50a547
cmp dword [ebp + 0x10], 0
je 0x50a48d
mov edx, dword [ebp - 0x18]
mov edi, dword [edx + 0xc]
test edi, edi
je 0x50a428
mov ecx, edi
jmp 0x50a42d
movzx edx, byte [edx + 0x568f80]
movzx ecx, byte [ecx + 0x568f80]
sub ecx, edx
jne 0x50a3f8
inc eax
jmp 0x50a2a0
mov eax, dword [ebp - 0x28]
inc edi
add ebx, 0x10
cmp edi, eax
jl 0x50a298
jmp 0x50a2cc
movzx edx, byte [edx + 0x568f80]
movzx eax, byte [eax + 0x568f80]
sub eax, edx
jne 0x50a310
inc ecx
jmp 0x50a2e0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x10]
sub esi, ecx
movzx eax, byte [ecx]
movzx edx, byte [ecx + esi]
cmp eax, edx
jne 0x50a46e
test eax, eax
jne 0x50a484
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x50a48d
test edi, edi
je 0x50a48d
mov eax, dword [eax + 0x110]
test eax, eax
je 0x50a48d
mov ecx, dword [ebp + 0x1c]
add ecx, 0x2c
cmp dword [eax], ecx
je 0x50a487
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x50a461
jmp 0x50a48d
movzx edx, byte [edx + 0x568f80]
movzx eax, byte [eax + 0x568f80]
sub eax, edx
jne 0x50a547
inc ecx
jmp 0x50a432
mov dword [eax], 0
mov eax, dword [ebp - 0x20]
mov ecx, eax
inc eax
mov dword [ebp - 0x20], eax
test ecx, ecx
jne 0x50a4a0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0x14]
call fcn.004ae6b0
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
movsx eax, word [eax + 0x2a]
xor esi, esi
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x50a547
mov al, byte [ebp - 1]
cmp byte [ebx + 0xf], al
jne 0x50a504
mov eax, dword [ebx]
mov edi, dword [ebp + 0x14]
sub edi, eax
movzx ecx, byte [eax]
movzx edx, byte [eax + edi]
cmp ecx, edx
jne 0x50a50f
test ecx, ecx
jne 0x50a521
cmp dword [ebp - 0x10], 1
jne 0x50a524
mov edx, dword [ebp - 0x18]
test byte [edx + 0x24], 4
jne 0x50a504
mov eax, dword [ebp + 0x14]
mov ecx, edx
push eax
mov eax, dword [ecx + 0x34]
call fcn.004b6300
add esp, 4
test eax, eax
je 0x50a524
inc esi
add ebx, 0x14
cmp esi, dword [ebp - 0x28]
jl 0x50a4c2
jmp 0x50a547
movzx edx, byte [edx + 0x568f80]
movzx ecx, byte [ecx + 0x568f80]
sub ecx, edx
jne 0x50a504
inc eax
jmp 0x50a4d1
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0x28]
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
cmp esi, ecx
jne 0x50a53d
or eax, 0xffffffff
jmp 0x50a540
movsx eax, si
mov edx, dword [ebp + 0x1c]
mov word [edx + 0x20], ax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x38]
inc ecx
add eax, 0x48
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], eax
cmp ecx, dword [edx]
jl 0x50a337
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x50a58b
mov edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x2c], edx
test byte [eax + 0x24], 8
je 0x50a585
or dword [ecx + 4], 0x100000
mov ecx, dword [edx + 0x48]
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 0xc], 0
jne 0x50a81d
cmp dword [ebp + 0x10], 0
je 0x50a81d
cmp dword [ebp - 0x20], 0
jne 0x50a81d
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x78], 0
mov dword [ebp - 8], 0
je 0x50a633
movzx edi, byte [ebx + 0x90]
cmp edi, 0x7e
je 0x50a600
mov esi, dword [ebp + 0x10]
mov ecx, 0x570468
sub esi, ecx
nop
movzx eax, byte [ecx]
movzx edx, byte [ecx + esi]
cmp eax, edx
jne 0x50a5eb
test eax, eax
jne 0x50a5fd
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], 1
jmp 0x50a62d
movzx edx, byte [edx + 0x568f80]
movzx eax, byte [eax + 0x568f80]
sub eax, edx
jne 0x50a600
inc ecx
jmp 0x50a5d0
cmp edi, 0x7d
je 0x50a633
mov esi, dword [ebp + 0x10]
mov ecx, 0x57046c
sub esi, ecx
nop
movzx eax, byte [ecx]
movzx edx, byte [ecx + esi]
cmp eax, edx
jne 0x50a70c
test eax, eax
jne 0x50a722
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebx + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x18]
test dword [eax + 0x18], 0x200
je 0x50a67a
mov edi, dword [eax + 8]
test edi, edi
je 0x50a67a
mov esi, dword [ebp + 0x10]
mov ecx, str.excluded
sub esi, ecx
movzx eax, byte [ecx]
movzx edx, byte [ecx + esi]
cmp eax, edx
jne 0x50a728
test eax, eax
jne 0x50a73e
mov ecx, dword [edi + 0x14]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], edx
mov dword [eax + 0x1c], 2
cmp dword [ebp - 8], 0
je 0x50a81d
mov edx, dword [ebp + 0x14]
call fcn.004ae6b0
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
movsx edi, word [eax + 0x2a]
mov ecx, dword [eax + 0x48]
mov ebx, dword [eax + 4]
xor esi, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], edi
test edi, edi
jle 0x50a6e4
nop
mov dl, byte [ebp - 1]
cmp byte [ebx + 0xf], dl
jne 0x50a75f
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x14]
sub eax, ecx
movzx edx, byte [ecx]
movzx edi, byte [ecx + eax]
cmp edx, edi
jne 0x50a744
test edx, edx
jne 0x50a756
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0x28]
cmp esi, ecx
jne 0x50a6e4
or esi, 0xffffffff
mov edi, dword [ebp - 0x28]
cmp esi, edi
jl 0x50a770
mov edx, dword [ebp + 0x14]
call fcn.004b6c80
test eax, eax
je 0x50a770
mov ebx, dword [ebp - 8]
test dword [ebx + 0x24], 0x200
jne 0x50a773
or esi, 0xffffffff
jmp 0x50a773
movzx edx, byte [edx + 0x568f80]
movzx eax, byte [eax + 0x568f80]
sub eax, edx
jne 0x50a633
inc ecx
jmp 0x50a610
movzx edx, byte [edx + 0x568f80]
movzx eax, byte [eax + 0x568f80]
sub eax, edx
jne 0x50a67a
inc ecx
jmp 0x50a650
movzx edi, byte [edi + 0x568f80]
movzx edx, byte [edx + 0x568f80]
sub edx, edi
jne 0x50a75c
inc ecx
jmp 0x50a6c3
mov edi, dword [ebp - 0x28]
inc esi
add ebx, 0x14
cmp esi, edi
jl 0x50a6b0
jmp 0x50a6e7
mov ebx, dword [ebp - 8]
cmp esi, edi
jge 0x50a81d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x1c]
inc dword [ebp - 0x10]
cmp ecx, 2
jne 0x50a7be
mov edx, dword [ebp + 8]
cmp byte [edx + 0xc8], cl
jb 0x50a7a0
mov dword [ebp - 0x2c], 0xa4
jmp 0x50a816
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0x18]
add ecx, esi
or dword [eax + 4], 0x400000
mov dword [eax + 0x1c], ecx
mov dword [ebp - 0x2c], 0xad
jmp 0x50a81d
test esi, esi
jns 0x50a7c8
mov byte [eax + 1], 0x44
jmp 0x50a80f
test ecx, ecx
jne 0x50a7f3
cmp esi, 0x20
jl 0x50a7df
mov ecx, dword [ebp + 8]
or edx, 0xffffffff
or dword [ecx + 0x88], edx
jmp 0x50a80f
mov ecx, esi
mov edx, 1
shl edx, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 0x88], edx
jmp 0x50a80f
cmp esi, 0x20
jl 0x50a7fd
or edx, 0xffffffff
jmp 0x50a806
mov edx, 1
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 0x8c], edx
mov dword [ebp - 0x2c], 0x4d
mov word [eax + 0x20], si
mov dword [eax + 0x2c], ebx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x50a868
cmp dword [ebp - 0x20], 1
jne 0x50a868
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x50a868
mov edx, dword [ebp + 0x18]
test byte [edx + 0x18], 0x28
jne 0x50a868
mov edx, dword [ebp + 0x14]
call fcn.004b6c80
test eax, eax
je 0x50a868
mov eax, dword [esi + 0x10]
test dword [eax + 0x24], 0x200
jne 0x50a868
mov eax, dword [ebp + 0x1c]
mov ebx, 1
or ecx, 0xffffffff
mov dword [ebp - 0x10], ebx
mov word [eax + 0x20], cx
mov byte [eax + 1], 0x44
mov ecx, dword [ebp + 0x18]
test byte [ecx + 0x18], 0x80
je 0x50a94b
test ebx, ebx
jne 0x50ab04
cmp dword [ebp + 0x10], ebx
jne 0x50a953
mov eax, dword [ecx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x38], eax
test eax, eax
jle 0x50a953
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x14]
add ebx, 0x10
test byte [ebx], 3
mov ecx, dword [ebx - 8]
jne 0x50a8bc
test ecx, ecx
jne 0x50a8d3
neg edx
sbb edx, edx
test edx, edx
je 0x50a8ef
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x18]
inc eax
add ebx, 0x14
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x38]
jl 0x50a8a5
mov ecx, dword [ebp + 0x18]
jmp 0x50a953
test edx, edx
je 0x50a8bc
mov esi, dword [ebp + 0x14]
mov edi, ecx
sub esi, ecx
mov edi, edi
movzx edx, byte [edi]
movzx eax, byte [edi + esi]
cmp edx, eax
jne 0x50a932
test edx, edx
jne 0x50a948
mov eax, dword [ebp - 0x18]
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 0x18]
test dl, 1
jne 0x50a9de
test byte [eax + 4], 0x10
je 0x50a9de
push ecx
push str.misuse_of_aliased_aggregate__s
mov esi, dword [ebp + 8]
call fcn.004d7320
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [eax + 0x568f80]
movzx edx, byte [edx + 0x568f80]
sub edx, eax
jne 0x50a8b5
inc edi
jmp 0x50a8e0
test ebx, ebx
jne 0x50ab04
mov eax, dword [ecx + 0xc]
inc dword [ebp - 0x30]
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x50a310
cmp dword [ebp + 0x10], eax
jne 0x50ab11
mov esi, dword [ebp + 0x1c]
mov ebx, dword [esi + 4]
test bl, 0x40
je 0x50aad5
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xa5], 0
jne 0x50aaac
mov edi, dword [ebp - 0xc]
test dword [edi + 0x18], 0x10000
je 0x50aa9e
mov ecx, eax
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x3c], ecx
mov ecx, eax
and ecx, 0x10000001
xor edx, edx
cmp ecx, 1
jne 0x50a9ca
test edx, edx
jne 0x50a9ca
mov ecx, eax
and ecx, 0x40000000
or ecx, edx
jne 0x50aaac
and eax, 0x20000000
xor ecx, ecx
or eax, ecx
jne 0x50aaac
jmp 0x50aad8
test dword [eax + 4], 0x8000
je 0x50aa02
test edx, 0x4000
je 0x50a9f7
mov edi, dword [ebp - 0xc]
cmp dword [ebp + 0x18], edi
je 0x50aa05
push ecx
push str.misuse_of_aliased_window_function__s
jmp 0x50a91b
mov edi, dword [ebp - 0xc]
mov dl, byte [eax]
cmp dl, 0xad
jne 0x50aa0f
mov dl, byte [eax + 2]
cmp dl, 0xae
jne 0x50aa1b
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
jmp 0x50aa28
cmp dl, 0x88
jne 0x50aa49
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx]
cmp eax, 1
je 0x50aa49
mov esi, dword [ebp + 8]
push str.row_value_misused
call fcn.004d7320
add esp, 4
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
push 0x54ecee
push ebx
push esi
call fcn.0050a120
add esp, 0x10
cmp byte [esi + 0xc8], 2
jb 0x50ac71
mov eax, dword [esi + 0x110]
test eax, eax
je 0x50ac71
cmp dword [eax], ebx
je 0x50aa93
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x50aa83
jmp 0x50ac71
mov dword [eax], 0
jmp 0x50ac71
mov eax, dword [eax + 0x20]
and eax, 0x40000000
xor ecx, ecx
or eax, ecx
je 0x50aad8
mov edx, dword [ebp + 0x14]
push edx
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.004d71b0
add esp, 0xc
pop edi
mov byte [esi], 0x73
mov dword [esi + 0x2c], 0
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xc]
test ebx, 0x4000000
jne 0x50ab14
mov eax, esi
mov edx, dword [eax + 8]
call fcn.004b67b0
test eax, eax
je 0x50ab14
mov ecx, esi
or eax, ebx
pop edi
pop esi
mov dword [ecx + 4], eax
mov byte [ecx], 0xa7
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 1
je 0x50ab8e
test ebx, ebx
jne 0x50ab1e
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov eax, str.no_such_column
jmp 0x50ab26
mov edi, dword [ebp - 0xc]
mov eax, str.ambiguous_column_name
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
test ecx, ecx
je 0x50ab50
mov esi, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edx
push ecx
push eax
push str._s:__s._s._s
call fcn.004d7320
add esp, 0x14
mov byte [esi + 0x11], 1
inc dword [edi + 0x14]
jmp 0x50ab94
mov esi, dword [ebp + 8]
test edx, edx
je 0x50ab73
mov ecx, dword [ebp + 0x14]
push ecx
push edx
push eax
push str._s:__s._s
call fcn.004d7320
add esp, 0x10
mov byte [esi + 0x11], 1
inc dword [edi + 0x14]
jmp 0x50ab94
mov edx, dword [ebp + 0x14]
push edx
push eax
push str._s:__s
call fcn.004d7320
add esp, 0xc
mov byte [esi + 0x11], 1
inc dword [edi + 0x14]
jmp 0x50ab94
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
movzx eax, word [ecx + 0x20]
test ax, ax
js 0x50ac1d
cmp dword [ebp - 0x14], 0
je 0x50ac1d
movsx ecx, ax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x2c]
mov dl, 0x60
test byte [eax + 0x24], dl
je 0x50abf8
mov ebx, dword [eax + 4]
lea edi, [ecx + ecx*4]
test byte [ebx + edi*4 + 0x10], dl
je 0x50abf5
movzx eax, word [eax + 0x2a]
cmp ax, 0x40
jl 0x50abdb
mov edi, dword [ebp - 0xc]
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x50ac0e
movsx ecx, ax
mov eax, 1
xor edx, edx
call fcn.00484e40
mov edi, dword [ebp - 0xc]
add eax, 0xffffffff
adc edx, 0xffffffff
jmp 0x50ac0e
mov edi, dword [ebp - 0xc]
cmp ecx, 0x40
jl 0x50ac02
mov ecx, 0x3f
mov eax, 1
xor edx, edx
call fcn.00484e40
mov ecx, dword [ebp - 0x14]
or dword [ecx + 0x38], eax
or dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x50ac34
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call fcn.004c8350
mov ecx, dword [ebp + 0x1c]
add esp, 8
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0xc], 0
test eax, eax
je 0x50ac52
mov edx, dword [ebp - 0x1c]
push eax
push edx
call fcn.004c8350
mov ecx, dword [ebp + 0x1c]
add esp, 8
mov al, byte [ebp - 0x2c]
or dword [ecx + 4], 0x800000
mov dword [ecx + 0x10], 0
mov byte [ecx], al
cmp ebx, 1
jne 0x50a926
mov ebx, dword [ebp + 0x1c]
test dword [ebx + 4], 0x400000
mov ebx, dword [ebp + 0x18]
jne 0x50ac91
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 0x1c]
push ecx
push edx
mov edx, dword [ebp - 0x24]
push esi
call fcn.004dba20
add esp, 0xc
mov eax, 1
add dword [edi + 0x10], eax
cmp edi, ebx
je 0x50a92b
mov edi, dword [edi + 0xc]
add dword [edi + 0x10], eax
cmp edi, ebx
jne 0x50aca1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret