Function at 0x5a4b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
push ebx
mov edx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx]
mov ecx, dword [ebp + 0x1c]
xor eax, eax
push edi
mov dword [ecx + 0x1c], 0xffffffff
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xa2
je 0x5a4c1b
test byte [edx + 0x18], 6
je 0x5a4bdf
mov dword [ebp + 0xc], 0
jmp 0x5a4c1b
mov eax, dword [esi + 0x14]
xor ebx, ebx
test eax, eax
jle 0x5a4c1b
xor edi, edi
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [edi + ecx]
push edx
call fcn.0057ae30
add esp, 8
test eax, eax
je 0x5a4c0e
mov eax, dword [esi + 0x14]
inc ebx
add edi, 0x10
cmp ebx, eax
jl 0x5a4bea
jmp 0x5a4c1b
mov eax, dword [esi + 0x10]
shl ebx, 4
mov ecx, dword [ebx + eax + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 4]
test eax, eax
mov dword [ebp - 0x34], eax
je 0x5a4e03
mov ecx, dword [eax]
mov dword [ebp - 0x28], 0
test ecx, ecx
lea ebx, [eax + 8]
jle 0x5a4dd5
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
test eax, eax
mov dword [ebp - 0x30], edi
je 0x5a4cd1
mov ecx, dword [eax + 8]
test ch, 8
je 0x5a4cd1
mov eax, dword [eax]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x2c], eax
cmp dword [eax], 0
jle 0x5a4cc3
add eax, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push ecx
push edx
mov ecx, dword [eax]
push ecx
call fcn.005a54f0
add esp, 0x10
test eax, eax
je 0x5a4ca8
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
inc eax
mov dword [ebp - 0x10], 2
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov word [edx + 0x20], si
mov edi, 1
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
inc esi
add edx, 0x18
mov ecx, dword [eax]
mov dword [ebp - 0x1c], edx
cmp esi, ecx
jl 0x5a4c6d
test edi, edi
jne 0x5a4db6
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5a4db6
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5a4ce6
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x48]
cmp eax, ecx
jne 0x5a4db6
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5a4d2d
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x5a4cf6
mov eax, dword [edi]
push ecx
push eax
call fcn.0057ae30
add esp, 8
test eax, eax
jne 0x5a4db6
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x5a4d2d
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x5a4d2d
mov edx, dword [ebp + 0x1c]
add edx, 0x2c
push edx
push 0
push eax
call fcn.005a7bb0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, eax
inc eax
test ecx, ecx
mov dword [ebp - 0x10], eax
jne 0x5a4d3d
mov dword [ebp - 8], ebx
mov edx, dword [edi + 4]
xor esi, esi
cmp word [edi + 0x2a], si
mov dword [ebp - 0x1c], edx
jle 0x5a4db6
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ecx]
push edx
call fcn.0057ae30
add esp, 8
test eax, eax
jne 0x5a4d81
cmp dword [ebp - 4], 1
jne 0x5a4d95
test byte [ebx + 0x24], 4
jne 0x5a4d81
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x34]
push eax
push ecx
call fcn.005a54a0
add esp, 8
test eax, eax
je 0x5a4d95
movsx edx, word [edi + 0x2a]
mov ecx, dword [ebp - 0x1c]
inc esi
add ecx, 0x10
cmp esi, edx
mov dword [ebp - 0x1c], ecx
jl 0x5a4d4b
jmp 0x5a4db6
movsx eax, word [edi + 0x28]
mov edx, dword [ebp - 4]
mov dword [ebp - 8], ebx
inc edx
cmp esi, eax
mov dword [ebp - 4], edx
jne 0x5a4dac
or eax, 0xffffffff
jmp 0x5a4daf
movsx eax, si
mov ecx, dword [ebp + 0x1c]
mov word [ecx + 0x20], ax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
inc eax
add ebx, 0x48
mov ecx, dword [edx]
mov dword [ebp - 0x28], eax
cmp eax, ecx
jl 0x5a4c40
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
jmp 0x5a4ddb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
test eax, eax
je 0x5a4e03
mov edx, dword [eax + 0x2c]
mov dword [ecx + 0x1c], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x2c], edx
mov dl, byte [eax + 0x24]
test dl, 8
je 0x5a4dfa
or dword [ecx + 4], 0x100000
mov eax, dword [ecx + 0x2c]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5a4fd7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5a4fd7
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x5a4fd7
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [esi + 0x78]
test eax, eax
je 0x5a4e81
xor ebx, ebx
mov bl, byte [esi + 0x90]
cmp ebx, 0x7c
je 0x5a4e5e
mov edx, dword [ebp + 0x10]
push edx
push 0x75433c
call fcn.0057ae30
add esp, 8
test eax, eax
jne 0x5a4e5e
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x1c], 1
jmp 0x5a4e7e
cmp ebx, 0x7b
je 0x5a4e81
mov ecx, dword [ebp + 0x10]
push ecx
push 0x754338
call fcn.0057ae30
add esp, 8
test eax, eax
jne 0x5a4e81
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0x1c], eax
mov edi, dword [esi + 0x78]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x18]
test ch, 2
je 0x5a4eb8
mov esi, dword [eax + 8]
test esi, esi
je 0x5a4eb8
mov eax, dword [ebp + 0x10]
push eax
push str.excluded
call fcn.0057ae30
add esp, 8
test eax, eax
jne 0x5a4eb8
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp + 0x1c]
mov edi, dword [ecx + 0x18]
mov dword [edx + 0x1c], 2
test edi, edi
je 0x5a4fd7
mov eax, dword [edi + 0x48]
mov ebx, dword [edi + 4]
xor esi, esi
mov dword [ebp - 0x14], eax
cmp word [edi + 0x2a], si
mov dword [ebp - 0x10], 1
jle 0x5a4f04
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebx]
push ecx
push edx
call fcn.0057ae30
add esp, 8
test eax, eax
je 0x5a4ef9
movsx eax, word [edi + 0x2a]
inc esi
add ebx, 0x10
cmp esi, eax
jl 0x5a4ed8
jmp 0x5a4f04
movsx ecx, word [edi + 0x28]
cmp esi, ecx
jne 0x5a4f04
or esi, 0xffffffff
movsx edx, word [edi + 0x2a]
cmp esi, edx
jl 0x5a4f25
mov eax, dword [ebp + 0x14]
push eax
call fcn.005a70d0
add esp, 4
test eax, eax
je 0x5a4f25
test byte [edi + 0x24], 0x40
jne 0x5a4f25
or esi, 0xffffffff
movsx ecx, word [edi + 0x2a]
cmp esi, ecx
jge 0x5a4fd7
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0x1c]
cmp eax, 2
jne 0x5a4f81
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x5a4f5f
mov word [edx + 0x20], si
mov dword [edx + 0x2c], edi
mov dword [ebp - 0x18], 0xa2
jmp 0x5a4fd7
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], 0xab
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 4]
add ecx, esi
or eax, 0x400000
mov dword [edx + 0x1c], ecx
mov dword [edx + 4], eax
jmp 0x5a4fd7
test esi, esi
jge 0x5a4f8b
mov byte [edx + 1], 0x44
jmp 0x5a4fc9
test eax, eax
jne 0x5a4fad
cmp esi, 0x20
jl 0x5a4f99
or eax, 0xffffffff
jmp 0x5a4fa2
mov eax, 1
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 0x88], eax
jmp 0x5a4fc9
cmp esi, 0x20
jl 0x5a4fb7
or eax, 0xffffffff
jmp 0x5a4fc0
mov eax, 1
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 0x8c], eax
mov dword [edx + 0x2c], edi
mov word [edx + 0x20], si
mov dword [ebp - 0x18], 0x4d
mov edi, dword [ebp - 4]
test edi, edi
jne 0x5a5024
cmp dword [ebp - 0x10], 1
jne 0x5a5024
mov esi, dword [ebp - 8]
test esi, esi
je 0x5a5024
mov edx, dword [ebp + 0x18]
test byte [edx + 0x18], 0x20
jne 0x5a5024
mov eax, dword [ebp + 0x14]
push eax
call fcn.005a70d0
add esp, 4
test eax, eax
je 0x5a5024
mov ecx, dword [esi + 0x10]
test byte [ecx + 0x24], 0x40
jne 0x5a5024
mov ebx, dword [ebp + 0x1c]
mov edi, 1
mov dword [ebp - 4], edi
mov word [ebx + 0x20], 0xffff
mov byte [ebx + 1], 0x44
jmp 0x5a5027
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
test byte [edx + 0x18], 0x80
je 0x5a5080
test edi, edi
jne 0x5a51cd
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5a5088
mov eax, edx
xor esi, esi
mov edi, dword [eax + 8]
cmp dword [edi], 0
jle 0x5a5088
lea ecx, [edi + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx]
test ebx, ebx
je 0x5a506b
mov eax, dword [ebp + 0x14]
push eax
push ebx
call fcn.0057ae30
add esp, 8
test eax, eax
je 0x5a50a5
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi]
inc esi
add ecx, 0x18
cmp esi, eax
mov dword [ebp - 0x1c], ecx
jl 0x5a5051
mov ebx, dword [ebp + 0x1c]
jmp 0x5a5088
test edi, edi
jne 0x5a51cd
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x20]
inc edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
test eax, eax
mov dword [ebp + 0x18], eax
je 0x5a5169
jmp 0x5a4c1b
mov eax, dword [ebp + 0x18]
lea edx, [esi + esi*2]
mov eax, dword [eax + 0x18]
mov ecx, dword [edi + edx*8 + 4]
test al, 1
jne 0x5a50da
test byte [ecx + 4], 0x10
je 0x5a50da
mov ecx, dword [ebp + 8]
push ebx
push str.misuse_of_aliased_aggregate__s
push ecx
call fcn.0059f920
add esp, 0xc
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
test ah, 0x40
jne 0x5a5105
mov eax, dword [ecx + 4]
test ah, 0x80
je 0x5a5105
mov edx, dword [ebp + 8]
push ebx
push str.misuse_of_aliased_window_function__s
push edx
call fcn.0059f920
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.005a62b0
add esp, 4
cmp eax, 1
je 0x5a5130
mov eax, dword [ebp + 8]
push str.row_value_misused
push eax
call fcn.0059f920
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp + 0x1c]
push ecx
push 0x751b54
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.005a5340
mov al, byte [esi + 0xc8]
add esp, 0x18
cmp al, 2
jb 0x5a5161
push ebx
push 0
push esi
call fcn.005a7bb0
add esp, 0xc
mov edi, dword [ebp - 0xc]
jmp 0x5a52f1
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5a51da
mov al, byte [ebx + 4]
mov edi, dword [ebp - 0xc]
test al, 0x40
je 0x5a51b4
mov edx, dword [ebp - 0x24]
push edi
push edx
call fcn.005a55a0
add esp, 8
test eax, eax
je 0x5a51b4
mov eax, dword [ebp + 0x14]
push eax
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.0057aad0
add esp, 0xc
mov byte [ebx], 0x71
mov dword [ebx + 0x2c], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005a6fe0
add esp, 4
test eax, eax
je 0x5a51dd
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 1
je 0x5a5269
test edi, edi
jne 0x5a51e4
mov edi, dword [ebp - 0xc]
mov eax, str.no_such_column
jmp 0x5a51ec
mov edi, dword [ebp - 0xc]
mov eax, str.ambiguous_column_name
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5a521b
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
push eax
push str._s:__s._s._s
push esi
call fcn.0059f920
mov byte [esi + 0x11], 1
mov eax, dword [edi + 0x14]
add esp, 0x18
inc eax
mov dword [edi + 0x14], eax
jmp 0x5a526f
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5a5246
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push edx
push ecx
push eax
push str._s:__s._s
push esi
call fcn.0059f920
mov byte [esi + 0x11], 1
mov eax, dword [edi + 0x14]
add esp, 0x14
inc eax
mov dword [edi + 0x14], eax
jmp 0x5a526f
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push ecx
push eax
push str._s:__s
push esi
call fcn.0059f920
mov byte [esi + 0x11], 1
mov eax, dword [edi + 0x14]
add esp, 0x10
inc eax
mov dword [edi + 0x14], eax
jmp 0x5a526f
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ax, word [ebx + 0x20]
test ax, ax
jl 0x5a52a6
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5a52a6
movsx ecx, ax
cmp ecx, 0x40
jl 0x5a528c
mov ecx, 0x3f
mov eax, 1
xor edx, edx
call fcn.006a1cd0
mov ecx, dword [ebp - 8]
or dword [ecx + 0x38], eax
mov eax, dword [ecx + 0x3c]
or eax, edx
mov dword [ecx + 0x3c], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
push edx
push eax
call fcn.005a64f0
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0x24]
push ecx
push edx
mov dword [ebx + 0xc], 0
call fcn.005a64f0
mov al, byte [ebp - 0x18]
mov ecx, dword [ebx + 4]
mov byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 0x10
or ecx, 0x800000
cmp eax, 1
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], ecx
jne 0x5a50ce
mov ebx, dword [ebp + 0x1c]
test dword [ebx + 4], 0x400000
jne 0x5a530f
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
push eax
push ebx
push esi
call fcn.005a9060
add esp, 0x10
mov edx, dword [edi + 0x10]
mov eax, dword [ebp + 0x18]
inc edx
cmp edi, eax
mov dword [edi + 0x10], edx
je 0x5a532b
mov edi, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
inc edx
cmp edi, eax
mov dword [edi + 0x10], edx
jne 0x5a531d
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret