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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [esp + 0x58], eax
mov ebx, dword [ecx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
xor eax, eax
dec eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
mov al, byte [ecx]
test al, al
je 0x5a457b
cmp al, 3
jb 0x5a445a
mov dword [esp + 0x54], 0
cmp al, 4
jne 0x5a4469
mov edi, dword [esi + 4]
jmp 0x5a45e9
push 0x718366
push 0x1303d
jmp 0x5a45d0
mov dword [esp + 4], ebx
mov dword [esp + 0x18], edx
mov byte [esi], 1
mov ecx, dword [0x72dde0]
test ecx, ecx
je 0x5a449b
call dword [section..00cfg]
push 0x19a
call ecx
add esp, 4
mov edi, 0xa
test eax, eax
jne 0x5a45e9
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x54]
mov ecx, esi
push eax
push 0
push dword [esi + 0x3c]
push dword [esi + 0x38]
call fcn.005a7b30
add esp, 0x10
mov edi, eax
test eax, eax
jne 0x5a45e9
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x5a453b
cmp dword [0x72dce0], 0
je 0x5a4bc9
mov edi, dword [0x73ee00]
test edi, edi
je 0x5a44ef
mov ecx, dword [0x72dd30]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [0x72dd0c]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
sub dword [0x73eda8], eax
dec dword [0x73edcc]
mov ecx, dword [0x72dd04]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
mov edi, dword [0x73ee00]
test edi, edi
je 0x5a453b
mov ecx, dword [0x72dd38]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [esi + 0x10], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x5a454f
mov dword [esi + 4], eax
jmp 0x5a4555
cmp dword [esi + 4], 0
je 0x5a4564
cmp byte [esi], 0
jne 0x5a455d
mov byte [esi], 2
xor edi, edi
jmp 0x5a45e9
xor edi, edi
cmp byte [esi], 0
mov dword [esp + 0x54], 0
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 4]
jne 0x5a45e9
mov dword [esp + 4], ebx
movzx eax, word [esi + 0x46]
mov ecx, dword [esi + 0x74]
cmp word [ecx + 0x18], ax
jbe 0x5a45c6
movzx ebx, word [ecx + 0x1a]
mov edi, dword [ecx + 0x40]
mov dword [esp + 0x24], eax
movzx eax, word [edi + eax*2]
rol ax, 8
and eax, ebx
movsx ebx, byte [esi + 0x44]
add eax, dword [ecx + 0x38]
cmp dword [ecx + 0x14], 0
mov dword [esp + 0xc], ecx
js 0x5a471d
mov dword [esp + 0x14], eax
test dl, 2
jne 0x5a45fe
xor eax, eax
jmp 0x5a466d
push 0x718366
push 0x13046
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00576b00
add esp, 0x14
mov edi, 0xb
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0066e1f1
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [ecx + 8], 0
je 0x5a4656
mov eax, dword [ecx + 0x14]
mov dword [esp + 8], eax
mov ecx, dword [ecx + 0x4c]
mov edi, edx
call dword [section..00cfg]
push dword [esp + 0x14]
push dword [esp + 0x10]
call ecx
add esp, 8
mov ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
add eax, eax
mov edx, 0xaaaaaaab
mul edx
movzx eax, cx
mov ecx, dword [esp + 8]
add eax, ecx
add eax, 2
shr edx, 1
cmp eax, edx
mov edx, edi
mov ecx, dword [esp + 0xc]
jg 0x5a4656
mov al, 1
cmp word [ecx + 0x18], 1
jne 0x5a466d
mov ecx, esi
mov edi, edx
call fcn.0058daa0
mov edx, edi
mov edi, eax
test eax, eax
jne 0x5a45e9
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x74]
mov dword [esp + 0x1c], eax
cmp byte [ecx + 8], 0
mov ecx, dword [esp + 4]
je 0x5a474d
mov al, byte [esi + 1]
test al, 0x20
mov dword [esp + 0x18], edx
je 0x5a46d0
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x5a46bb
mov edx, dword [esi + 0x40]
cmp ecx, esi
je 0x5a46b4
test edx, edx
je 0x5a4810
cmp dword [ecx + 0x40], edx
je 0x5a4810
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x5a469f
test esi, esi
je 0x5a46c4
and al, 0xdf
mov byte [esi + 1], al
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 4]
cmp dword [esi + 0x70], 0
je 0x5a477e
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x5a46f6
mov edx, dword [eax + 0x1c]
cmp edx, dword [ecx + 0x18]
jae 0x5a47d8
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x5a45e9
mov edx, dword [eax + 0x9c]
cmp edx, dword [eax + 0xa8]
jbe 0x5a4830
call fcn.0058cb60
jmp 0x5a4835
mov edi, edx
mov dword [esp + 8], ebx
mov ebx, eax
call fcn.005aa440
mov edx, edi
mov ecx, dword [esp + 0xc]
test eax, eax
mov eax, ebx
mov ebx, dword [esp + 8]
je 0x5a45b6
push 0x718366
push 0x1304a
jmp 0x5a45d0
and byte [esi + 1], 0xf1
mov word [esi + 0x32], 0
cmp byte [esi], 0
je 0x5a47e5
mov ecx, esi
mov edi, edx
call fcn.005aa0a0
mov edx, edi
mov edi, eax
test eax, eax
mov ecx, dword [esp + 4]
jne 0x5a45e9
jmp 0x5a4686
cmp byte [ecx + 0xb], 0
je 0x5a46da
mov eax, dword [esi + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x20], eax
mov edx, dword [esi + 0x40]
mov byte [ecx + 0xb], 0
mov edi, dword [ecx + 4]
mov edi, dword [edi + 8]
test edi, edi
je 0x5a46da
test byte [edi + 1], 0x10
je 0x5a47d3
mov byte [ecx + 0xb], 1
cmp dword [edi + 0x40], edx
jne 0x5a47d3
mov eax, dword [edi + 0x20]
xor eax, dword [esp + 8]
mov ecx, dword [edi + 0x24]
xor ecx, dword [esp + 0x20]
or ecx, eax
mov ecx, dword [esp + 4]
jne 0x5a47d3
mov byte [edi], 1
mov edi, dword [edi + 0x18]
jmp 0x5a47a3
cmp dword [eax + 0x68], 0
je 0x5a483f
call fcn.00582500
jmp 0x5a4835
movzx eax, word [esi + 0x46]
test ax, ax
je 0x5a4760
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
cmp byte [ecx + 8], 0
je 0x5a4760
dec eax
mov word [esi + 0x46], ax
mov ecx, dword [esp + 4]
jmp 0x5a4686
push esi
call fcn.0058d970
add esp, 4
mov edi, eax
mov dword [esp + 0x54], eax
test eax, eax
mov ecx, dword [esp + 4]
jne 0x5a45e9
jmp 0x5a46d0
call fcn.0058cf70
mov edi, eax
test eax, eax
jne 0x5a45e9
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx + 0x50]
call dword [section..00cfg]
lea edi, [esp + 0x30]
push edi
push dword [esp + 0x18]
push ebx
call ecx
add esp, 0xc
movzx ecx, word [edi + 0x10]
xor eax, eax
cmp dword [edi + 0xc], ecx
je 0x5a487d
mov ecx, ebx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
call fcn.005a8f30
add esp, 4
lea edi, [esp + 0x54]
mov dword [edi], eax
movzx eax, word [esp + 0x42]
mov ecx, ebx
mov edx, dword [esp + 0x24]
push edi
push eax
call fcn.005aa570
add esp, 8
mov edi, dword [edi]
test edi, edi
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 8]
jne 0x5a45e9
mov eax, dword [esp + 0xc]
cmp byte [eax + 8], 0
je 0x5a4904
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + 0x14]
lea ecx, [ecx + ecx*2]
mov eax, dword [eax + 0x28]
add eax, eax
cmp ecx, eax
jle 0x5a48de
mov ecx, esi
call fcn.005aa9f0
mov edx, dword [esp + 0x18]
mov edi, eax
test eax, eax
jne 0x5a45e9
cmp byte [esi + 0x44], bl
jle 0x5a4adf
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x5a49ce
call fcn.00580a10
jmp 0x5a4a2b
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp dword [ecx + 0x14], 0
js 0x5a49b6
movsx eax, byte [esi + 0x44]
dec eax
cmp eax, ebx
lea eax, [esi + ebx*4 + 0x7c]
cmovle eax, dword [esp + 0x1c]
mov edi, ecx
mov ecx, dword [ecx + 0x40]
movzx edx, word [edi + 0x18]
movzx edx, word [ecx + edx*2 - 2]
movzx ecx, word [edi + 0x1a]
rol dx, 8
and edx, ecx
cmp dx, 3
ja 0x5a4951
push 0x718366
push 0x130a5
jmp 0x5a45d0
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
add edx, dword [edi + 0x38]
mov dword [esp + 4], edx
mov ecx, dword [edi + 0x4c]
call dword [section..00cfg]
push dword [esp + 4]
push edi
call ecx
add esp, 8
movzx eax, ax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x5a49a2
mov edx, dword [eax + 0x1c]
cmp edx, dword [ecx + 0x18]
jae 0x5a4b54
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x5a4b3f
mov dword [esp + 0x54], edx
jmp 0x5a4b9a
mov edi, ecx
call fcn.005aa440
mov ecx, edi
mov edi, eax
test eax, eax
jne 0x5a45e9
jmp 0x5a4914
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 edi, dword [ecx + 0x18]
dec edi
mov eax, edi
mul dword [ebx + 0xa8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xac]
imul eax, edi
mov ecx, dword [ecx + 4]
mov dword [esp + 4], ecx
add edx, eax
mov edi, edx
mov ebx, dword [ebx + 0x40]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [esp + 4]
push edi
push dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
call ecx
add esp, 0x10
mov al, byte [esi + 0x44]
dec al
mov byte [esi + 0x44], al
cmp al, bl
jle 0x5a4ac0
movsx ecx, al
dec al
mov byte [esi + 0x44], al
mov eax, dword [esi + ecx*4 + 0x78]
test eax, eax
je 0x5a4ab8
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x5a4a5b
call fcn.00580a10
jmp 0x5a4ab8
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 edi, dword [ecx + 0x18]
dec edi
mov eax, edi
mul dword [ebx + 0xa8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xac]
imul eax, edi
mov ecx, dword [ecx + 4]
mov dword [esp + 4], ecx
add edx, eax
mov edi, edx
mov ebx, dword [ebx + 0x40]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [esp + 4]
push edi
push dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
call ecx
add esp, 0x10
mov al, byte [esi + 0x44]
jmp 0x5a4a33
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov ecx, esi
call fcn.005aa9f0
mov edi, eax
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x5a45e9
cmp byte [esp + 0x2c], 0
je 0x5a4b03
mov byte [esi], 2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
cmp cx, word [eax + 0x18]
jae 0x5a4b2b
mov dword [esi + 4], 1
jmp 0x5a455d
mov ecx, esi
mov edi, edx
call fcn.005a7d30
mov ebx, eax
mov eax, edi
test al, 2
je 0x5a4b1e
mov ecx, esi
call fcn.0058d9f0
mov byte [esi], 3
xor edi, edi
cmp ebx, 0x10
cmovne edi, ebx
jmp 0x5a45e9
mov dword [esi + 4], 0xffffffff
mov eax, dword [eax + 0x18]
dec eax
mov word [esi + 0x46], ax
jmp 0x5a455d
mov edx, dword [eax + 0x9c]
cmp edx, dword [eax + 0xa8]
jbe 0x5a4b61
call fcn.0058cb60
jmp 0x5a4b66
cmp dword [eax + 0x68], 0
je 0x5a4b6e
call fcn.00582500
jmp 0x5a4b66
call fcn.0058cf70
mov dword [esp + 0x54], eax
test eax, eax
jne 0x5a4b9a
mov eax, dword [esp + 0x14]
add eax, 4
mov edi, dword [esp + 4]
add edi, 0xfffffffc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
push dword [esp + 0x20]
push dword [esp + 0x2c]
push eax
push edi
call fcn.005aa680
add esp, 0x10
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + 0x18]
dec edx
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x18]
call fcn.005aa570
add esp, 8
mov edi, dword [esp + 0x54]
test edi, edi
mov edx, dword [esp + 0x18]
jne 0x5a45e9
jmp 0x5a48b4
mov ecx, dword [0x72dd04]
call dword [section..00cfg]
push ebx
jmp 0x5a4536