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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
xor ecx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov eax, dword [edi]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov ecx, 0xa4
mov dword [esp + 0x3c], ecx
or ecx, 0xffffffff
mov dword [esi + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], ebx
test edx, edx
je 0x1005c3b9
test byte [ebx + 0x18], 6
je 0x1005c340
mov dword [esp + 0x24], ecx
jmp 0x1005c3b9
mov edi, ecx
cmp dword [eax + 0x14], ecx
jle 0x1005c386
mov ebx, dword [eax + 0x10]
mov ecx, dword [ebx]
call fcn.10038cf4
test eax, eax
je 0x1005c368
mov eax, dword [esp + 0x2c]
inc edi
mov edx, dword [esp + 0x24]
add ebx, 0x10
cmp edi, dword [eax + 0x14]
jl 0x1005c34a
jmp 0x1005c381
mov edx, dword [esp + 0x2c]
mov eax, edi
add eax, eax
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + eax*8 + 0xc]
mov dword [esp + 0x34], eax
mov eax, edx
mov edx, dword [esp + 0x24]
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
cmp edi, dword [eax + 0x14]
jne 0x1005c3b5
mov ecx, str.main
call fcn.10038cf4
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x1005c3b1
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
xor ecx, ecx
jmp 0x1005c3b9
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 4]
mov dword [esp + 0x5c], eax
test eax, eax
je 0x1005c612
cmp dword [eax], 0
mov ebx, ecx
lea ecx, [eax + 8]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ecx
jle 0x1005c5e7
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x48], edx
test eax, eax
je 0x1005c475
test dword [eax + 4], 0x800
je 0x1005c475
mov eax, dword [eax + 0x1c]
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], eax
cmp dword [eax], ebx
jle 0x1005c467
lea edi, [eax + 4]
push dword [esp + 0x24]
mov edx, dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.1005c1cc
test eax, eax
je 0x1005c443
inc dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x20], 2
mov dword [esp + 0x30], eax
mov word [esi + 0x20], bx
mov dword [esp + 0x4c], ecx
jmp 0x1005c447
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
inc ebx
add edi, 0x14
cmp ebx, dword [eax]
jl 0x1005c40d
mov edi, dword [esp + 0x14]
test ecx, ecx
mov ecx, dword [esp + 0x1c]
jne 0x1005c5cb
mov edx, dword [esp + 0x48]
cmp dword [ebp + 8], 0
mov ebx, dword [esp + 0x28]
je 0x1005c5cf
cmp dword [esp + 0x24], 0
je 0x1005c489
mov eax, dword [esp + 0x34]
cmp dword [edx + 0x48], eax
jne 0x1005c5cf
cmp dword [ebp + 8], 0
je 0x1005c4c4
mov ebx, dword [ecx + 0xc]
mov ecx, ebx
test ebx, ebx
jne 0x1005c49a
mov ecx, dword [edx]
mov edx, dword [ebp + 8]
call fcn.10038cf4
test eax, eax
jne 0x1005c5c7
cmp byte [edi + 0xcc], 2
jb 0x1005c4c4
test ebx, ebx
je 0x1005c4c4
lea eax, [esi + 0x2c]
xor edx, edx
push eax
mov ecx, edi
call fcn.100643be
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov ebx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x1005c4db
mov dword [esp + 0x30], ebx
mov ecx, dword [ebp + 0xc]
call fcn.10038d8b
mov ecx, dword [esp + 0x48]
xor edx, edx
mov byte [esp + 0x13], al
mov dword [esp + 0x4c], edx
mov eax, dword [ecx + 4]
movsx ecx, word [ecx + 0x2a]
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ecx
test ecx, ecx
jle 0x1005c5c7
mov dl, byte [esp + 0x13]
cmp byte [eax + 0xf], dl
jne 0x1005c579
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call fcn.10038cf4
test eax, eax
jne 0x1005c56d
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x1005c59f
test byte [ebx + 0x24], 4
jne 0x1005c56d
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x1005c567
mov ecx, dword [eax + 4]
and dword [esp + 0x54], 0
mov dword [esp + 0x58], ecx
test ecx, ecx
jle 0x1005c567
mov ebx, dword [eax]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx]
call fcn.10038cf4
test eax, eax
je 0x1005c596
mov eax, dword [esp + 0x54]
add ebx, 8
inc eax
mov dword [esp + 0x54], eax
cmp eax, dword [esp + 0x58]
jl 0x1005c547
xor eax, eax
test eax, eax
je 0x1005c59b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov dl, byte [esp + 0x13]
mov ebx, dword [esp + 0x4c]
add eax, 0x14
inc ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], ebx
cmp ebx, ecx
jge 0x1005c5c7
mov ebx, dword [esp + 0x1c]
jmp 0x1005c50c
xor eax, eax
inc eax
jmp 0x1005c569
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
push 0xffffffffffffffff
movzx ecx, dx
movsx eax, word [eax + 0x28]
cmp edx, eax
pop eax
cmove ecx, eax
mov word [esi + 0x20], cx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
inc ebx
add ecx, 0x48
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ecx
cmp ebx, dword [eax]
jl 0x1005c3de
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1005c60f
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x2c], eax
test byte [ecx + 0x24], 8
je 0x1005c608
or dword [esi + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [esp + 0x34], eax
mov ebx, dword [ebp + 0x10]
cmp dword [esp + 0x24], 0
mov ecx, dword [esp + 0x20]
jne 0x1005c77f
cmp dword [ebp + 8], 0
je 0x1005c77f
test ecx, ecx
jne 0x1005c77f
xor eax, eax
mov ebx, eax
cmp dword [edi + 0x78], eax
je 0x1005c681
mov al, byte [edi + 0x94]
cmp al, 0x7e
je 0x1005c666
mov edx, dword [ebp + 8]
mov ecx, 0x100b9910
call fcn.10038cf4
test eax, eax
jne 0x1005c660
mov dword [esi + 0x1c], 1
jmp 0x1005c67e
mov al, byte [edi + 0x94]
cmp al, 0x7d
je 0x1005c681
mov edx, dword [ebp + 8]
mov ecx, 0x100b990c
call fcn.10038cf4
test eax, eax
jne 0x1005c681
and dword [esi + 0x1c], ebx
mov ebx, dword [edi + 0x78]
mov ecx, dword [ebp + 0x10]
test dword [ecx + 0x18], 0x200
je 0x1005c6b2
mov edi, dword [ecx + 8]
test edi, edi
je 0x1005c6b2
mov edx, dword [ebp + 8]
mov ecx, str.excluded
call fcn.10038cf4
test eax, eax
jne 0x1005c6b2
mov eax, dword [edi + 0x14]
mov ebx, dword [eax + 0x18]
mov dword [esi + 0x1c], 2
test ebx, ebx
je 0x1005c778
mov ecx, dword [ebp + 0xc]
call fcn.10038d8b
movsx ecx, word [ebx + 0x2a]
mov dl, al
mov eax, dword [ebx + 0x48]
xor edi, edi
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
mov byte [esp + 0x13], dl
mov dword [esp + 0x20], 1
mov dword [esp + 0x54], eax
test ecx, ecx
jle 0x1005c721
cmp byte [eax + 0xf], dl
jne 0x1005c707
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call fcn.10038cf4
movsx ecx, word [ebx + 0x2a]
test eax, eax
je 0x1005c715
mov eax, dword [esp + 0x54]
mov dl, byte [esp + 0x13]
inc edi
add eax, 0x14
mov dword [esp + 0x54], eax
cmp edi, ecx
jl 0x1005c6e8
jmp 0x1005c721
movsx eax, word [ebx + 0x28]
cmp edi, eax
push 0xffffffffffffffff
pop eax
cmove edi, eax
cmp edi, ecx
jl 0x1005c744
mov ecx, dword [ebp + 0xc]
call fcn.1005fed3
movsx ecx, word [ebx + 0x2a]
test eax, eax
je 0x1005c744
test dword [ebx + 0x24], 0x200
push 0xffffffffffffffff
pop edx
cmove edi, edx
jmp 0x1005c747
or edx, 0xffffffff
cmp edi, ecx
jge 0x1005c778
inc dword [esp + 0x18]
cmp dword [esi + 0x1c], 2
jne 0x1005c808
mov eax, dword [esp + 0x14]
movzx edx, di
cmp byte [eax + 0xcc], 2
jb 0x1005c7de
mov word [esi + 0x20], dx
mov dword [esp + 0x3c], 0xa4
mov dword [esi + 0x2c], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1005c852
cmp ecx, 1
jne 0x1005c852
mov edi, dword [esp + 0x30]
test edi, edi
je 0x1005c852
test byte [ebx + 0x18], 0x28
jne 0x1005c852
mov ecx, dword [ebp + 0xc]
call fcn.1005fed3
test eax, eax
je 0x1005c84e
mov eax, dword [edi + 0x10]
test dword [eax + 0x24], 0x200
jne 0x1005c84e
xor eax, eax
mov byte [esi + 1], 0x44
inc eax
or ecx, 0xffffffff
mov dword [esp + 0x18], eax
mov word [esi + 0x20], cx
jmp 0x1005c852
mov ecx, ebx
call fcn.10068092
mov ebx, dword [ebp + 0x10]
movsx ecx, ax
mov dword [esp + 0x3c], 0xad
mov eax, dword [ebx + 8]
add ecx, dword [eax + 0x18]
or dword [esi + 4], 0x400000
mov dword [esi + 0x1c], ecx
jmp 0x1005c77b
test edi, edi
jns 0x1005c812
mov byte [esi + 1], 0x44
jmp 0x1005c83d
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
cmp dword [esi + 0x1c], 0
mov ecx, dword [esp + 0x14]
jne 0x1005c831
cmp edi, 0x20
cmovge eax, edx
or dword [ecx + 0x8c], eax
jmp 0x1005c83d
cmp edi, 0x20
cmovge eax, edx
or dword [ecx + 0x90], eax
mov word [esi + 0x20], di
mov dword [esp + 0x3c], 0x4d
jmp 0x1005c775
mov eax, dword [esp + 0x18]
test byte [ebx + 0x18], 0x80
je 0x1005c8c9
test eax, eax
jne 0x1005ca42
xor ecx, ecx
cmp dword [ebp + 8], ecx
jne 0x1005c8d3
mov eax, dword [ebx + 8]
mov ebx, ecx
mov edx, dword [eax]
mov dword [esp + 0x5c], edx
test edx, edx
jle 0x1005c943
lea ecx, [eax + 0x10]
mov dword [esp + 0x54], ecx
test byte [ecx], 3
mov edi, dword [ecx - 8]
jne 0x1005c8b6
test edi, edi
jne 0x1005c896
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
jmp 0x1005c8ae
cmp dword [ebp + 0xc], 0
je 0x1005c8b6
mov edx, dword [ebp + 0xc]
mov ecx, edi
call fcn.10038cf4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
test eax, eax
je 0x1005c948
inc ebx
add ecx, 0x14
mov dword [esp + 0x54], ecx
cmp ebx, edx
jl 0x1005c881
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1005ca42
xor ecx, ecx
mov ebx, dword [ebx + 0xc]
inc dword [esp + 0x50]
mov dword [ebp + 0x10], ebx
test ebx, ebx
jne 0x1005c3b5
cmp dword [ebp + 8], ebx
jne 0x1005ca47
test byte [esi + 4], 0x40
je 0x1005ca35
mov edi, dword [esp + 0x2c]
cmp byte [edi + 0xa5], bl
jne 0x1005ca09
mov eax, dword [esp + 0x40]
test dword [eax + 0x18], 0x10000
je 0x1005c9fd
mov ecx, edi
call fcn.10067f48
xor ecx, ecx
test eax, eax
je 0x1005c936
mov eax, dword [edi + 0x20]
and eax, 0x40000000
or eax, ecx
jne 0x1005ca09
mov eax, dword [edi + 0x20]
and eax, 0x20000000
jmp 0x1005ca05
mov ebx, dword [ebp + 0x10]
jmp 0x1005c8d3
mov ecx, dword [ebp + 0x10]
imul eax, ebx, 0x14
mov edx, dword [ecx + 8]
mov edx, dword [eax + edx + 4]
mov eax, ecx
test byte [eax + 0x18], 1
jne 0x1005c981
test byte [edx + 4], 0x10
je 0x1005c981
push edi
push str.misuse_of_aliased_aggregate__s
push dword [esp + 0x1c]
call fcn.10038bfe
add esp, 0xc
push 2
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test dword [edx + 4], 0x8000
je 0x1005c9a4
test dword [eax + 0x18], 0x4000
je 0x1005c99c
mov eax, dword [esp + 0x40]
cmp dword [ebp + 0x10], eax
je 0x1005c9a4
push edi
push str.misuse_of_aliased_window_function__s
jmp 0x1005c969
mov ecx, edx
call fcn.1005e5b0
cmp eax, 1
je 0x1005c9c2
push str.row_value_misused
push dword [esp + 0x18]
call fcn.10038bfe
pop ecx
pop ecx
jmp 0x1005c975
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
push eax
push 0x100b3a5d
push esi
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebx + 8]
call fcn.1005c0c7
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xcc], 2
jb 0x1005cb1d
push esi
xor edx, edx
mov ecx, eax
call fcn.100643be
jmp 0x1005cb19
mov eax, dword [edi + 0x20]
and eax, 0x40000000
or eax, ecx
je 0x1005ca0e
xor eax, eax
inc eax
jmp 0x1005ca10
mov eax, ecx
test eax, eax
je 0x1005ca35
push dword [ebp + 0xc]
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.100381a3
add esp, 0xc
mov byte [esi], 0x73
and dword [esi + 0x2c], 0
xor eax, eax
inc eax
jmp 0x1005c978
mov ecx, esi
call fcn.1005fb1d
test eax, eax
jne 0x1005ca2d
jmp 0x1005ca47
cmp eax, 1
je 0x1005caba
cmp dword [esp + 0x18], 0
mov ecx, str.ambiguous_column_name
push dword [ebp + 0xc]
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1005ca7c
push dword [ebp + 8]
push ecx
push eax
push str._s:__s._s._s
push dword [esp + 0x28]
call fcn.10038bfe
add esp, 0x18
jmp 0x1005caab
cmp dword [ebp + 8], 0
je 0x1005ca99
push dword [ebp + 8]
push eax
push str._s:__s._s
push dword [esp + 0x24]
call fcn.10038bfe
add esp, 0x14
jmp 0x1005caab
push eax
push str._s:__s
push dword [esp + 0x20]
call fcn.10038bfe
add esp, 0x10
mov eax, dword [esp + 0x14]
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x40]
inc dword [eax + 0x14]
xor eax, eax
cmp word [esi + 0x20], ax
jl 0x1005cad7
mov edi, dword [esp + 0x30]
test edi, edi
je 0x1005cad7
mov ecx, esi
call fcn.1005c26e
or dword [edi + 0x38], eax
or dword [edi + 0x3c], edx
mov edx, dword [esi + 0xc]
mov edi, dword [esp + 0x2c]
test edx, edx
je 0x1005cae9
mov ecx, edi
call fcn.1005eeda
mov edx, dword [esi + 0x10]
xor eax, eax
mov dword [esi + 0xc], eax
test edx, edx
je 0x1005cafe
mov ecx, edi
call fcn.1005eeda
xor eax, eax
mov ecx, dword [esp + 0x3c]
or dword [esi + 4], 0x800000
mov dword [esi + 0x10], eax
mov byte [esi], cl
cmp dword [esp + 0x18], 1
jne 0x1005c975
mov eax, dword [esp + 0x14]
test dword [esi + 4], 0x400000
jne 0x1005cb36
push dword [ebx + 4]
mov edx, esi
mov ecx, eax
push dword [esp + 0x38]
call fcn.100671b0
mov eax, dword [esp + 0x40]
jmp 0x1005cb3f
mov eax, dword [eax + 0xc]
inc dword [eax + 0x10]
cmp eax, ebx
jne 0x1005cb3c
jmp 0x1005ca2d