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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov eax, ecx
mov dword [esp + 0x1c], 0
push esi
xor ecx, ecx
mov dword [esp + 0xc], eax
push edi
mov ebx, dword [eax]
mov edi, edx
mov edx, dword [ebp + 0x14]
xor esi, esi
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], ecx
mov ecx, 0xa4
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [edx + 0x1c], 0xffffffff
test edi, edi
je 0x1004c3a4
xor edi, edi
test byte [eax + 0x18], 6
je 0x1004c35a
mov dword [esp + 0x14], edi
jmp 0x1004c3a4
cmp dword [ebx + 0x14], esi
jle 0x1004c3a0
mov ebx, dword [ebx + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [ebx]
sub esi, edx
lea ebx, [ebx]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x1004c445
test ecx, ecx
jne 0x1004c457
mov ecx, dword [esp + 0x2c]
add edi, edi
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*8 + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
mov edx, dword [ebp + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
test eax, eax
je 0x1004c603
xor ecx, ecx
lea esi, [eax + 8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], esi
cmp dword [eax], ecx
jle 0x1004c5d8
jmp 0x1004c3d0
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x34], ebx
test eax, eax
je 0x1004c4a4
test dword [eax + 4], 0x800
je 0x1004c4a4
mov ebx, dword [eax + 0x1c]
xor esi, esi
mov dword [esp + 0x44], 0
cmp dword [ebx], esi
jle 0x1004c48b
lea edi, [ebx + 4]
push dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.1004c210
add esp, 8
test eax, eax
je 0x1004c473
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x24]
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 + 0x44], eax
jmp 0x1004c477
movzx eax, byte [eax + 0x100baa20]
movzx ecx, byte [ecx + 0x100baa20]
sub ecx, eax
jne 0x1004c45d
inc edx
jmp 0x1004c370
mov eax, dword [esp + 0x2c]
inc edi
add ebx, 0x10
cmp edi, dword [eax + 0x14]
jl 0x1004c362
jmp 0x1004c398
mov eax, dword [esp + 0x44]
inc esi
add edi, 0x14
cmp esi, dword [ebx]
jl 0x1004c407
mov ecx, dword [esp + 0x28]
test eax, eax
jne 0x1004c5b5
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x1004c5bd
mov ebx, dword [esp + 0x34]
jmp 0x1004c4a7
mov eax, dword [ebp + 8]
test edi, edi
je 0x1004c4b8
mov edx, dword [esp + 0x30]
cmp dword [ebx + 0x48], edx
jne 0x1004c5bd
test eax, eax
je 0x1004c52c
mov edi, dword [esi + 0xc]
mov edx, edi
test edi, edi
jne 0x1004c4c7
mov edx, dword [ebx]
mov esi, eax
sub esi, edx
jmp 0x1004c4d0
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x1004c50d
test ecx, ecx
jne 0x1004c523
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xc8], 2
jb 0x1004c52c
test edi, edi
je 0x1004c52c
mov eax, dword [eax + 0x110]
test eax, eax
je 0x1004c52c
mov ecx, dword [ebp + 0x14]
add ecx, 0x2c
cmp dword [eax], ecx
je 0x1004c526
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x1004c500
jmp 0x1004c52c
movzx eax, byte [eax + 0x100baa20]
movzx ecx, byte [ecx + 0x100baa20]
sub ecx, eax
jne 0x1004c5b1
inc edx
jmp 0x1004c4d0
mov dword [eax], 0
mov ecx, dword [esp + 0x20]
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x1004c543
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
xor edi, edi
mov ebx, dword [ebx + 4]
movsx eax, word [eax + 0x2a]
test eax, eax
jle 0x1004c5b1
mov esi, dword [ebp + 0xc]
mov edx, dword [ebx]
sub esi, edx
jmp 0x1004c560
movzx eax, byte [edx]
movzx ecx, byte [edx + esi]
cmp eax, ecx
jne 0x1004c66e
test eax, eax
jne 0x1004c684
mov esi, dword [esp + 0x24]
cmp esi, 1
jne 0x1004c68a
mov eax, dword [esp + 0x1c]
test byte [eax + 0x24], 4
jne 0x1004c5a1
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 0x34]
call fcn.1004c1a0
test eax, eax
je 0x1004c68a
mov ecx, dword [esp + 0x34]
inc edi
add ebx, 0x14
movsx eax, word [ecx + 0x2a]
cmp edi, eax
jl 0x1004c554
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x48]
inc ecx
add esi, 0x48
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], esi
cmp ecx, dword [eax]
jl 0x1004c3d0
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1004c600
mov eax, dword [esi + 0x2c]
mov dword [edx + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [edx + 0x2c], eax
test byte [esi + 0x24], 8
je 0x1004c5f9
or dword [edx + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [esp + 0x30], eax
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
test edi, edi
jne 0x1004c92d
test ecx, ecx
je 0x1004c92d
test eax, eax
jne 0x1004c92d
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [eax + 0x78], ebx
je 0x1004c718
movzx edi, byte [eax + 0x90]
cmp edi, 0x7e
je 0x1004c6de
mov edx, 0x100c8cec
mov esi, ecx
sub esi, edx
jmp 0x1004c650
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x1004c6c3
test ecx, ecx
jne 0x1004c6d5
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x1c], 1
jmp 0x1004c70d
movzx ecx, byte [ecx + 0x100baa20]
movzx eax, byte [eax + 0x100baa20]
sub eax, ecx
jne 0x1004c5a1
inc edx
jmp 0x1004c560
mov eax, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], esi
movsx eax, word [eax + 0x28]
cmp edi, eax
jne 0x1004c6a8
or eax, 0xffffffff
jmp 0x1004c6ab
movsx eax, di
mov edx, dword [ebp + 0x14]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov word [edx + 0x20], ax
jmp 0x1004c5c0
movzx eax, byte [eax + 0x100baa20]
movzx ecx, byte [ecx + 0x100baa20]
sub ecx, eax
jne 0x1004c6db
inc edx
jmp 0x1004c650
mov ecx, dword [ebp + 8]
cmp edi, 0x7d
je 0x1004c718
mov edx, 0x100c8cf0
mov esi, ecx
sub esi, edx
lea esp, [esp]
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x1004c7be
test ecx, ecx
jne 0x1004c7d4
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x1c], ebx
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x78]
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x10]
test dword [eax + 0x18], 0x200
je 0x1004c760
mov edi, dword [eax + 8]
test edi, edi
je 0x1004c760
mov esi, dword [ebp + 8]
mov edx, str.excluded
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x1004c7da
test ecx, ecx
jne 0x1004c7f0
mov eax, dword [edi + 0x14]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x28], ebx
mov dword [eax + 0x1c], 2
test ebx, ebx
je 0x1004c935
mov eax, dword [ebx + 0x48]
xor esi, esi
mov ebx, dword [ebx + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], 1
movsx edi, word [eax + 0x2a]
mov dword [esp + 0x44], edi
test edi, edi
jle 0x1004c81b
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 0x1004c7f6
test ecx, ecx
jne 0x1004c808
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x44]
movsx eax, word [ebx + 0x28]
cmp esi, eax
mov eax, 0xffffffff
cmove esi, eax
jmp 0x1004c81f
movzx eax, byte [eax + 0x100baa20]
movzx ecx, byte [ecx + 0x100baa20]
sub ecx, eax
jne 0x1004c718
inc edx
jmp 0x1004c6f0
movzx eax, byte [eax + 0x100baa20]
movzx ecx, byte [ecx + 0x100baa20]
sub ecx, eax
jne 0x1004c760
inc edx
jmp 0x1004c735
movzx eax, byte [eax + 0x100baa20]
movzx ecx, byte [ecx + 0x100baa20]
sub ecx, eax
jne 0x1004c80b
inc edx
jmp 0x1004c797
mov edi, dword [esp + 0x44]
inc esi
add ebx, 0x14
cmp esi, edi
jl 0x1004c790
mov ebx, dword [esp + 0x28]
cmp esi, edi
jl 0x1004c846
mov ecx, dword [ebp + 0xc]
call fcn.10050f60
test eax, eax
je 0x1004c83e
test dword [ebx + 0x24], 0x200
mov eax, 0xffffffff
cmove esi, eax
cmp esi, edi
jge 0x1004c935
mov edi, dword [ebp + 0x14]
inc dword [esp + 0x24]
mov eax, dword [edi + 0x1c]
cmp eax, 2
jne 0x1004c898
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
cmp byte [eax + 0xc8], 2
jb 0x1004c879
mov word [edi + 0x20], si
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x38], 0xa4
jmp 0x1004c93b
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], 0xad
mov eax, dword [eax + 0x18]
add eax, esi
or dword [edi + 4], 0x400000
mov dword [edi + 0x1c], eax
jmp 0x1004c93b
test esi, esi
jns 0x1004c8b4
mov byte [edi + 1], 0x44
mov dword [edi + 0x2c], ebx
mov word [edi + 0x20], si
mov dword [esp + 0x38], 0x4d
jmp 0x1004c938
test eax, eax
jne 0x1004c8ff
cmp esi, 0x20
jl 0x1004c8db
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esp + 0x38], 0x4d
or dword [ecx + 0x88], eax
mov dword [edi + 0x2c], ebx
mov word [edi + 0x20], si
jmp 0x1004c938
mov ecx, esi
mov dword [esp + 0x38], 0x4d
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x10]
or dword [ecx + 0x88], eax
mov dword [edi + 0x2c], ebx
mov word [edi + 0x20], si
jmp 0x1004c938
cmp esi, 0x20
jl 0x1004c909
or eax, 0xffffffff
jmp 0x1004c912
mov eax, 1
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], 0x4d
or dword [ecx + 0x8c], eax
mov dword [edi + 0x2c], ebx
mov word [edi + 0x20], si
jmp 0x1004c938
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
jmp 0x1004c943
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x1004c98e
cmp eax, 1
jne 0x1004c98e
test esi, esi
mov esi, dword [ebp + 0xc]
je 0x1004c991
test byte [ecx + 0x18], 0x28
jne 0x1004c991
mov ecx, esi
call fcn.10050f60
test eax, eax
je 0x1004c991
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x10]
test dword [eax + 0x24], 0x200
jne 0x1004c991
mov ebx, 1
mov byte [edi + 1], 0x44
or eax, 0xffffffff
mov dword [esp + 0x24], ebx
mov word [edi + 0x20], ax
jmp 0x1004c991
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
test byte [edi + 0x18], 0x80
je 0x1004ca38
test ebx, ebx
jne 0x1004cc17
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x1004ca43
mov ecx, dword [edi + 8]
xor edx, edx
mov dword [esp + 0x44], edx
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
test eax, eax
jle 0x1004ca40
lea ebx, [ecx + 0x10]
jmp 0x1004c9d0
test byte [ebx], 3
mov edi, dword [ebx - 8]
jne 0x1004ca0e
test edi, edi
jne 0x1004c9e4
mov ecx, esi
neg ecx
sbb ecx, ecx
jmp 0x1004ca0a
test esi, esi
je 0x1004ca0e
mov edx, edi
sub esi, edi
lea esp, [esp]
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x1004ca23
test ecx, ecx
jne 0x1004ca35
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x1004ca68
inc edx
add ebx, 0x14
mov dword [esp + 0x44], edx
cmp edx, eax
jl 0x1004c9d0
mov ebx, dword [esp + 0x24]
mov edi, dword [ebp + 0x10]
jmp 0x1004ca40
movzx eax, byte [eax + 0x100baa20]
movzx ecx, byte [ecx + 0x100baa20]
sub ecx, eax
jne 0x1004c9ff
inc edx
jmp 0x1004c9f0
test ebx, ebx
jne 0x1004cc17
mov ecx, dword [ebp + 8]
mov edi, dword [edi + 0xc]
inc dword [esp + 0x40]
mov dword [ebp + 0x10], edi
test edi, edi
je 0x1004cb5b
mov edx, dword [ebp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
jmp 0x1004c3a7
mov ebx, dword [ebp + 0x10]
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 0x1004caa1
test byte [eax + 4], 0x10
je 0x1004caa1
push edi
push str.misuse_of_aliased_aggregate__s
push dword [esp + 0x18]
call fcn.1001c650
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [eax + 4], 0x8000
je 0x1004cac2
test ecx, 0x4000
je 0x1004caba
mov ecx, dword [esp + 0x3c]
cmp ebx, ecx
je 0x1004cac2
push edi
push str.misuse_of_aliased_window_function__s
jmp 0x1004ca89
mov cl, byte [eax]
cmp cl, 0xad
jne 0x1004cacc
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x1004cad6
mov eax, dword [eax + 0x14]
jmp 0x1004cae1
cmp cl, 0x88
jne 0x1004cb05
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
cmp eax, 1
je 0x1004cb05
push 0x100c8d48
push dword [esp + 0x14]
call fcn.1001c650
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x40]
mov edi, dword [ebp + 0x14]
mov ebx, dword [esp + 0x10]
push ecx
push 0x100cffec
push edi
push edx
mov edx, esi
mov ecx, ebx
call fcn.1004c070
add esp, 0x10
cmp byte [ebx + 0xc8], 2
jb 0x1004cd7d
mov eax, dword [ebx + 0x110]
test eax, eax
je 0x1004cd7d
nop
cmp dword [eax], edi
je 0x1004cb50
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x1004cb40
jmp 0x1004cd7d
mov dword [eax], 0
jmp 0x1004cd7d
test ecx, ecx
jne 0x1004cc26
mov edi, dword [ebp + 0x14]
mov ebx, dword [edi + 4]
test bl, 0x40
je 0x1004cbbc
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0xa5], cl
jne 0x1004cbf1
mov ecx, dword [esp + 0x3c]
test dword [ecx + 0x18], 0x10000
je 0x1004cbe4
mov ecx, dword [eax + 0x20]
xor edx, edx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x4c], eax
mov eax, ecx
and eax, 0x10000001
cmp eax, 1
jne 0x1004cbb2
test edx, edx
jne 0x1004cbb2
mov eax, ecx
and eax, 0x40000000
or eax, edx
jne 0x1004cbf1
and ecx, 0x20000000
or ecx, edx
jne 0x1004cbf1
test ebx, 0x4000000
jne 0x1004cc22
mov ecx, dword [edi + 8]
call fcn.10050950
test eax, eax
je 0x1004cc22
or eax, ebx
mov byte [edi], 0xa7
mov dword [edi + 4], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x20]
and eax, 0x40000000
or eax, 0
je 0x1004cbbc
push esi
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.1001b980
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
cmp ebx, 1
je 0x1004cc93
jmp 0x1004cc26
mov ebx, dword [esp + 0x24]
test ebx, ebx
mov ecx, str.ambiguous_column_name
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [esp + 0x14]
push esi
test ecx, ecx
je 0x1004cc56
push dword [ebp + 8]
push ecx
push eax
push str._s:__s._s._s
push dword [esp + 0x24]
call fcn.1001c650
add esp, 0x18
jmp 0x1004cc84
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1004cc72
push ecx
push eax
push 0x100c8db8
push dword [esp + 0x20]
call fcn.1001c650
add esp, 0x14
jmp 0x1004cc84
push eax
push 0x100c8dc4
push dword [esp + 0x1c]
call fcn.1001c650
add esp, 0x10
mov eax, dword [esp + 0x10]
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x3c]
inc dword [eax + 0x14]
mov edi, dword [ebp + 0x14]
movzx eax, word [edi + 0x20]
test ax, ax
js 0x1004cd35
cmp dword [esp + 0x18], 0
je 0x1004cd35
mov esi, dword [edi + 0x2c]
movsx edx, ax
test byte [esi + 0x24], 0x60
je 0x1004cd0b
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
test byte [eax + ecx*4 + 0x10], 0x60
je 0x1004cd0b
movzx eax, word [esi + 0x2a]
cmp ax, 0x40
jl 0x1004cce3
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
or edx, 0xffffffff
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
jmp 0x1004cd35
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 0x1004cd35
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 [edi + 0xc]
mov esi, dword [esp + 0x2c]
test edx, edx
je 0x1004cd47
mov ecx, esi
call fcn.1004f6f0
mov edx, dword [edi + 0x10]
mov dword [edi + 0xc], 0
test edx, edx
je 0x1004cd5c
mov ecx, esi
call fcn.1004f6f0
or dword [edi + 4], 0x800000
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x10], 0
mov byte [edi], cl
cmp ebx, 1
jne 0x1004ca95
mov ebx, dword [esp + 0x10]
test dword [edi + 4], 0x400000
jne 0x1004cd9c
mov eax, dword [ebp + 0x10]
mov edx, edi
mov ecx, ebx
push dword [eax + 4]
push dword [esp + 0x34]
call fcn.1005b9a0
add esp, 8
mov ecx, dword [esp + 0x3c]
mov eax, dword [ebp + 0x10]
inc dword [ecx + 0x10]
cmp ecx, eax
je 0x1004cdba
lea ebx, [ebx]
mov ecx, dword [ecx + 0xc]
inc dword [ecx + 0x10]
cmp ecx, eax
jne 0x1004cdb0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret