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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, ecx
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [esp + 0xa8], eax
xor eax, eax
dec eax
lea ecx, [esp + 0x58]
mov dword [ecx + 8], eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov byte [ecx + 0xc], 0xff
mov edi, dword [esi + 0x74]
xor ebx, ebx
mov dword [esp + 0x18], esi
cmp dword [edi + 0x14], 0
jns 0x5aaa40
mov ecx, edi
call fcn.005aa440
test eax, eax
jne 0x5ab356
cmp byte [edi + 0xc], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
je 0x5aaad7
mov bl, byte [esi + 0x44]
test bl, bl
jne 0x5aaafa
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
test eax, eax
mov ebx, dword [esp + 0x14]
je 0x5aaa87
cmp eax, esi
je 0x5aaa80
cmp byte [eax], 0
jne 0x5aaa80
mov ecx, dword [eax + 0x74]
cmp ecx, dword [esi + 0x74]
je 0x5ab30c
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x5aaa6b
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 8], eax
mov ecx, dword [edi + 0x48]
mov ebx, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x5aaab0
mov edx, dword [ebx + 0x1c]
cmp edx, dword [ecx + 0x18]
jae 0x5aae6a
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x5ab35a
mov edx, dword [ebx + 0x9c]
cmp edx, dword [ebx + 0xa8]
jbe 0x5aae49
call fcn.0058cb60
jmp 0x5aae75
mov eax, dword [edi + 0x14]
lea edx, [eax + eax*2]
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x28]
add ecx, ecx
xor eax, eax
cmp edx, ecx
jle 0x5ab365
mov bl, byte [esi + 0x44]
test bl, bl
je 0x5ab361
mov eax, dword [edi + 0x48]
cmp dword [eax + 0x20], 2
jge 0x5ab331
movsx eax, bl
mov ecx, dword [esi + eax*4 + 0x74]
movzx eax, word [esi + eax*2 + 0x46]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [ecx + 0x48]
mov edi, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x5aab2f
mov edx, dword [edi + 0x1c]
cmp edx, dword [ecx + 0x18]
jae 0x5aab54
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x5aab3f
mov ebx, dword [esp + 0x14]
jmp 0x5aadb3
mov edx, dword [edi + 0x9c]
cmp edx, dword [edi + 0xa8]
jbe 0x5aab65
call fcn.0058cb60
jmp 0x5aab6a
cmp dword [edi + 0x68], 0
mov edi, dword [esp + 0x10]
je 0x5aab7b
call fcn.00582500
jmp 0x5aab6e
call fcn.0058cf70
mov edi, dword [esp + 0x10]
test eax, eax
je 0x5aab7b
mov ebx, dword [esp + 0x14]
jmp 0x5aadb7
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x14], 0
js 0x5aae50
cmp byte [edi + 2], 0
je 0x5aad6d
cmp byte [edi + 0xc], 1
jne 0x5aad6d
movzx eax, word [edi + 0x1c]
cmp ax, word [edi + 0x18]
jne 0x5aad6d
cmp dword [ecx + 4], 1
je 0x5aad6d
mov edx, dword [esp + 8]
cmp word [ecx + 0x18], dx
jne 0x5aad6d
mov ebx, dword [edi + 0x34]
xor ecx, ecx
dec ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], ecx
test ax, ax
je 0x5ab0bb
mov ecx, ebx
lea edx, [esp + 0x3c]
xor eax, eax
push eax
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0058e430
add esp, 0xc
test eax, eax
mov ecx, ebx
mov ebx, dword [esp + 0x14]
jne 0x5aadb7
mov dword [esp + 0x20], ecx
mov esi, dword [edi + 0x24]
mov dword [esp + 0x30], esi
mov word [esp + 0x2e], 0xffff
mov ecx, dword [edi + 0x4c]
call dword [section..00cfg]
push esi
push edi
call ecx
add esp, 8
mov word [esp + 0x2e], ax
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x78]
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
mov esi, dword [esp + 0x3c]
mov ebx, dword [esi + 0x34]
mov eax, dword [esi + 0x38]
movzx edi, byte [esi + 9]
test byte [ebx + 0x18], 0xc
mov dword [esp + 8], eax
je 0x5aac6f
mov eax, dword [esp + 8]
add eax, edi
mov ecx, dword [ebx + 0x28]
sub ecx, edi
push ecx
push 0
push eax
call fcn.006719e0
mov eax, dword [esp + 0x14]
add esp, 0xc
add eax, edi
add eax, 8
mov byte [eax - 8], 0xd
add edi, 8
mov dword [eax - 7], 0
xor ecx, ecx
mov byte [eax - 1], cl
mov cl, byte [ebx + 0x29]
mov byte [eax - 3], cl
mov cl, byte [ebx + 0x28]
mov byte [eax - 2], cl
mov ecx, dword [ebx + 0x28]
sub ecx, edi
movzx ecx, cx
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0x34]
mov dl, byte [ecx + 0x15]
mov byte [esi + 0xb], dl
xor edx, edx
mov byte [esi + 0xa], dl
mov dl, 1
mov byte [esi + 8], dl
mov dword [esi + 0x4c], 0x589e20
mov dword [esi + 0x50], 0x589f00
mov word [esi + 1], 0x101
movzx edx, word [ecx + 0x1e]
mov word [esi + 0xe], dx
movzx ecx, word [ecx + 0x20]
mov word [esi + 0x10], cx
mov word [esi + 0x12], di
mov ecx, dword [ebx + 0x24]
mov edx, dword [esp + 8]
add ecx, edx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
xor eax, eax
mov byte [esi + 0xc], al
mov eax, dword [ebx + 0x24]
dec eax
mov word [esi + 0x1a], ax
mov word [esi + 0x18], 0
mov al, 1
mov byte [esi], al
xor eax, eax
inc eax
mov ebx, esi
mov esi, eax
mov dword [esp + 0x68], eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x6c], edi
lea eax, [esp + 0x30]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x2e]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x90], 2
lea ecx, [esp + 0x68]
xor edx, edx
push ebx
push esi
call fcn.005ad900
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
je 0x5ab0e3
mov ecx, ebx
test ebx, ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
je 0x5aadb7
mov dword [esp + 8], eax
mov ecx, dword [ecx + 0x48]
jmp 0x5ab297
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x24]
call fcn.0058a3c0
mov edi, eax
movzx esi, byte [esi + 3]
and esi, 1
xor eax, eax
cmp bl, 1
sete al
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push eax
push edi
call fcn.005abe00
add esp, 0xc
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5aadad
mov esi, eax
call fcn.005864e0
mov eax, esi
mov ebx, edi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov byte [edi + 0xc], 0
test edi, edi
je 0x5aae35
mov dword [esp + 8], eax
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x5aadd3
call fcn.00580a10
jmp 0x5aae31
mov dword [esp + 0x14], ebx
mov ebx, dword [ecx + 0x14]
dec dword [ebx + 0x80]
mov eax, dword [ebx + 0x90]
mov dword [ecx + 0x10], eax
mov dword [ebx + 0x90], ecx
mov esi, dword [ecx + 0x18]
dec esi
mov eax, esi
mul dword [ebx + 0xa8]
mov dword [esp + 0x10], eax
mov edi, edx
mov eax, dword [ebx + 0xac]
imul eax, esi
mov esi, dword [ecx + 4]
add edi, eax
mov ebx, dword [ebx + 0x40]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push esi
mov esi, dword [esp + 0x1c]
push edi
push dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x24]
call ecx
add esp, 0x10
mov eax, dword [esp + 8]
mov cl, byte [esi + 0x44]
dec cl
mov byte [esi + 0x44], cl
movsx ecx, cl
mov edi, dword [esi + ecx*4 + 0x78]
jmp 0x5ab0a4
call fcn.0058cf70
jmp 0x5aae75
mov ecx, dword [esp + 0xc]
call fcn.005aa440
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x5aab72
jmp 0x5aab89
cmp dword [ebx + 0x68], 0
je 0x5aae7d
call fcn.00582500
test eax, eax
jne 0x5ab35a
mov ebx, dword [esp + 8]
mov ecx, ebx
lea edx, [esp + 0x40]
push 0
push dword [edi + 4]
lea eax, [esp + 0x44]
push eax
call fcn.0058e430
add esp, 0xc
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x5aaf66
mov esi, dword [edi + 0x38]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + 9]
mov dword [esp + 0x20], eax
movzx eax, word [esi + eax + 5]
rol ax, 8
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x34]
movzx eax, ax
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + 0x28]
sub ecx, eax
mov edx, dword [esp + 0xc]
mov ebx, dword [edx + 0x38]
lea edi, [ebx + eax]
mov dword [esp + 0x28], edi
add eax, esi
mov edx, dword [edx + 4]
mov dword [esp + 0x1c], edx
push ecx
push eax
push dword [esp + 0x30]
call fcn.00670ee0
add esp, 0xc
cmp dword [esp + 0x1c], 1
lea eax, [ebx + 0x64]
cmovne eax, ebx
add esi, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
movzx ecx, word [edi + 0x12]
movzx edx, word [edi + 0x18]
lea ecx, [ecx + edx*2]
push ecx
push esi
push eax
call fcn.00670ee0
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov byte [ecx], 0
call fcn.00589b90
test eax, eax
jne 0x5aaf5a
mov ecx, dword [esp + 0xc]
call fcn.005aa440
test eax, eax
jne 0x5aaf5a
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x11], 0
je 0x5ab0b4
mov ecx, dword [esp + 0xc]
call fcn.0058fd40
mov dword [esp + 0x68], eax
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 8]
cmp byte [ebx + 0x11], 0
je 0x5aaf88
mov edx, dword [esp + 0x3c]
mov ecx, ebx
lea eax, [esp + 0x68]
push eax
push dword [edi + 4]
push 5
call fcn.0058fec0
add esp, 0xc
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x5ab38a
mov esi, dword [esp + 0xc]
lea eax, [esi + 0x1c]
lea ecx, [edi + 0x1c]
movzx edx, byte [edi + 0xc]
add edx, edx
push edx
push ecx
push eax
call fcn.00670ee0
add esp, 0xc
lea eax, [esi + 0x24]
lea ecx, [edi + 0x24]
movzx edx, byte [edi + 0xc]
shl edx, 2
push edx
push ecx
push eax
call fcn.00670ee0
add esp, 0xc
mov al, byte [edi + 0xc]
mov byte [esi + 0xc], al
mov eax, dword [esi + 0x38]
movzx edx, byte [eax]
and edx, 0xfffffff7
mov ecx, dword [edi + 0x34]
mov ebx, dword [edi + 0x38]
movzx esi, byte [edi + 9]
test byte [ecx + 0x18], 0xc
je 0x5ab002
lea eax, [ebx + esi]
mov edi, ecx
mov ecx, dword [ecx + 0x28]
sub ecx, esi
push ecx
push 0
push eax
mov dword [esp + 0x28], edx
call fcn.006719e0
mov edx, dword [esp + 0x28]
mov ecx, edi
add esp, 0xc
mov dword [esp + 0x20], ecx
mov dword [esp + 8], ebx
lea edi, [ebx + esi]
add edi, 0xc
mov byte [edi - 0xc], dl
add esi, 0xc
xor ebx, ebx
mov dword [edi - 0xb], ebx
mov byte [edi - 5], bl
mov al, byte [ecx + 0x29]
mov byte [edi - 7], al
mov al, byte [ecx + 0x28]
mov byte [edi - 6], al
mov eax, dword [ecx + 0x28]
sub eax, esi
movzx eax, ax
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x14], eax
mov ecx, ebx
call fcn.00589c70
mov word [ebx + 0x12], si
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x24]
mov ecx, dword [esp + 8]
add eax, ecx
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], edi
movzx eax, byte [ebx + 0xa]
add eax, ecx
mov dword [ebx + 0x44], eax
xor eax, eax
mov byte [ebx + 0xc], al
mov eax, dword [edx + 0x24]
dec eax
mov word [ebx + 0x1a], ax
mov word [ebx + 0x18], 0
mov al, 1
mov byte [ebx], al
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x38]
movzx edx, byte [ebx + 9]
bswap eax
mov dword [edx + ecx + 8], eax
xor eax, eax
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov dword [esi + 0x7c], edi
mov cl, 1
mov byte [esi + 0x44], cl
mov dword [esi + 0x46], eax
mov dword [esi + 0x78], ebx
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x74], edi
test eax, eax
je 0x5aaa2b
jmp 0x5ab365
xor eax, eax
jmp 0x5aaf5e
push 0x718366
push 0x12913
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00576b00
add esp, 0x14
mov eax, 0xb
jmp 0x5aab72
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x28]
movzx esi, word [ebx + 0x12]
movzx edx, word [esp + 0x2e]
add edx, esi
neg edx
add eax, edx
add eax, 0xfffffffe
mov dword [ebx + 0x14], eax
cmp byte [ecx + 0x11], 0
mov esi, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
je 0x5ab1e4
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x10]
push dword [eax + 4]
push 5
call fcn.0058fec0
add esp, 0xc
movzx eax, word [esp + 0x2e]
cmp ax, word [esi + 0x10]
jbe 0x5ab1e4
mov esi, dword [esp + 0x30]
xor eax, eax
dec eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
cmp dword [esp + 0x38], 0
jne 0x5ab1e4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x50]
call dword [section..00cfg]
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x24]
call ecx
add esp, 0xc
movzx eax, word [esp + 0x50]
cmp dword [esp + 0x4c], eax
jbe 0x5ab1e4
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x3c]
cmp ecx, esi
jb 0x5ab1c0
add eax, esi
cmp ecx, eax
jae 0x5ab1c0
push 0x718366
push 0x110fc
push str.database_corruption
push str._s_at_line__d_of___.10s_
mov esi, 0xb
push esi
call fcn.00576b00
add esp, 0x14
mov dword [esp + 0x38], esi
jmp 0x5ab1e4
movzx eax, word [esp + 0x52]
mov edx, dword [eax + esi - 4]
bswap edx
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x38]
push eax
push dword [esi + 4]
push 3
call fcn.0058fec0
add esp, 0xc
movzx eax, word [edi + 0x1a]
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x40]
movzx esi, word [edi + 0x18]
movzx edx, word [edx + esi*2 - 2]
rol dx, 8
and edx, eax
lea eax, [ecx + edx]
lea esi, [ecx + edx]
add esi, 2
xor edx, edx
mov edi, eax
mov ecx, esi
inc eax
mov dword [esp + 0x30], eax
cmp byte [edi], 0
jns 0x5ab223
lea edi, [edx + 1]
lea esi, [ecx + 1]
cmp edx, 8
mov edx, edi
jb 0x5ab208
add eax, 9
mov esi, 4
mov dword [esp + 0x30], ecx
mov dl, byte [ecx - 1]
mov byte [esp + esi + 0x58], dl
inc esi
test dl, dl
jns 0x5ab244
lea edx, [ecx + 1]
cmp ecx, eax
mov ecx, edx
jb 0x5ab22b
mov eax, dword [esp + 0x38]
test eax, eax
mov edi, dword [esp + 0x10]
jne 0x5ab26f
mov ecx, dword [esp + 0xc]
movzx edx, word [ecx + 0x18]
push dword [edi + 4]
push 0
push esi
lea eax, [esp + 0x64]
push eax
call fcn.005aa680
add esp, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x38]
movzx edx, byte [edx + 9]
bswap eax
mov dword [edx + ecx + 8], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x5ab303
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x5ab2a4
call fcn.00580a10
jmp 0x5ab303
mov esi, dword [ecx + 0x14]
dec dword [esi + 0x80]
mov eax, dword [esi + 0x90]
mov dword [ecx + 0x10], eax
mov dword [esi + 0x90], ecx
mov edi, dword [ecx + 0x18]
dec edi
mov eax, edi
mul dword [esi + 0xa8]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xac]
imul eax, edi
mov edi, dword [ecx + 4]
add edx, eax
mov dword [esp + 0x20], edx
mov esi, dword [esi + 0x40]
mov eax, dword [esi]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push edi
mov edi, dword [esp + 0x14]
push dword [esp + 0x24]
push dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x28]
call ecx
add esp, 0x10
mov eax, dword [esp + 8]
jmp 0x5aadb7
push 0x718366
push 0x12d51
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00576b00
add esp, 0x14
mov eax, 0xb
jmp 0x5ab365
push 0x718366
push 0x12d8d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00576b00
add esp, 0x14
mov eax, 0xb
jmp 0x5ab361
xor eax, eax
jmp 0x5ab365
mov dword [esi + 0x7c], 0
mov ebx, dword [esp + 0x14]
mov esi, eax
test ebx, ebx
je 0x5ab372
mov ecx, ebx
call fcn.005864e0
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0066e1f1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x7c], 0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x5ab361
mov dword [esp + 8], eax
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x5ab3ad
call fcn.00580a10
jmp 0x5ab3ff
mov ebx, dword [ecx + 0x14]
dec dword [ebx + 0x80]
mov eax, dword [ebx + 0x90]
mov dword [ecx + 0x10], eax
mov dword [ebx + 0x90], ecx
mov esi, dword [ecx + 0x18]
dec esi
mov eax, esi
mul dword [ebx + 0xa8]
mov dword [esp + 0x10], eax
mov edi, edx
mov eax, dword [ebx + 0xac]
imul eax, esi
mov esi, dword [ecx + 4]
add edi, eax
mov ebx, dword [ebx + 0x40]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push esi
push edi
push dword [esp + 0x18]
push ebx
call ecx
add esp, 0x10
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 8]
jmp 0x5ab365