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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov al, byte [ecx]
test al, al
mov dword [ebp - 0x18], ecx
je 0x5a9ce8
cmp al, 3
jb 0x5a9cc9
mov dword [ebp - 0x14], 0
cmp al, 4
jne 0x5a9bd5
mov edi, dword [esi + 4]
test edi, edi
jne 0x5a9f73
jmp 0x5a9ce8
mov byte [esi], 1
mov ecx, dword [0x72dde0]
test ecx, ecx
je 0x5a9bff
call dword [section..00cfg]
push 0x19a
call ecx
add esp, 4
mov edi, 0xa
test eax, eax
jne 0x5a9f73
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x14]
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 0x5a9f73
mov edi, dword [esi + 0x10]
test edi, edi
je 0x5a9c9e
cmp dword [0x72dce0], 0
je 0x5aa085
mov esi, dword [0x73ee00]
test esi, esi
je 0x5a9c52
mov ecx, dword [0x72dd30]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov ecx, dword [0x72dd0c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
sub dword [0x73eda8], eax
dec dword [0x73edcc]
mov ecx, dword [0x72dd04]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov esi, dword [0x73ee00]
test esi, esi
je 0x5a9c9e
mov ecx, dword [0x72dd38]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x10], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5a9cb4
mov dword [esi + 4], eax
jmp 0x5a9cba
cmp dword [esi + 4], 0
je 0x5a9cc7
mov al, byte [esi]
test al, al
jne 0x5a9cc9
mov byte [esi], 2
mov al, 2
jmp 0x5a9cc9
mov al, byte [esi]
cmp al, 1
je 0x5a9f6e
movzx eax, al
cmp eax, 2
jne 0x5a9ce8
mov byte [esi], 0
xor edi, edi
cmp dword [esi + 4], 0
jg 0x5a9f73
mov edi, dword [esi + 0x74]
movzx ebx, word [esi + 0x46]
inc ebx
mov word [esi + 0x46], bx
cmp byte [edi], 0
je 0x5a9d17
mov ecx, dword [0x72dde0]
test ecx, ecx
je 0x5a9d3f
call dword [section..00cfg]
push 0x19c
call ecx
add esp, 4
test eax, eax
je 0x5a9d3f
push 0x718366
push 0x12303
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00576b00
add esp, 0x14
mov edi, 0xb
jmp 0x5a9f73
lea ecx, [esi + 0x74]
mov al, byte [edi + 8]
cmp bx, word [edi + 0x18]
mov dword [ebp - 0x1c], ecx
jae 0x5a9de8
xor edi, edi
test al, al
jne 0x5a9f73
xor ebx, ebx
mov ecx, dword [ecx]
cmp byte [ecx + 8], 0
jne 0x5aa06c
movsx eax, byte [esi + 0x44]
cmp eax, 0x13
jge 0x5a9f5c
mov edx, dword [ecx + 0x40]
mov esi, dword [ebp - 0x18]
movzx esi, word [esi + 0x46]
movzx edx, word [edx + esi*2]
rol dx, 8
movzx edi, word [ecx + 0x1a]
and edx, edi
mov ecx, dword [ecx + 0x38]
mov edx, dword [ecx + edx]
mov ecx, dword [ebp - 0x18]
mov word [ecx + 0x32], bx
mov ecx, dword [ebp - 0x18]
and byte [ecx + 1], 0xf9
mov ecx, dword [ebp - 0x18]
mov word [ecx + eax*2 + 0x48], si
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x74]
movsx ecx, byte [esi + 0x44]
mov dword [esi + ecx*4 + 0x78], eax
mov word [esi + 0x46], bx
inc byte [esi + 0x44]
bswap edx
movzx eax, byte [esi + 2]
mov ecx, dword [esi + 0x14]
push eax
push esi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.005a7ff0
mov ecx, edi
add esp, 0xc
mov edi, eax
test eax, eax
je 0x5a9d5e
jmp 0x5a9f73
test al, al
je 0x5a9f53
movsx eax, byte [esi + 0x44]
test eax, eax
je 0x5a9f6b
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
movzx ecx, word [esi + eax*2 + 0x46]
mov word [esi + 0x46], cx
mov ecx, dword [esi + 0x74]
dec al
mov byte [esi + 0x44], al
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x5a9e31
call fcn.00580a10
jmp 0x5a9e84
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 [ebp - 0x20], eax
mov ebx, edx
mov eax, dword [esi + 0xac]
imul eax, edi
mov edi, dword [ecx + 4]
add ebx, eax
mov esi, dword [esi + 0x40]
mov eax, dword [esi]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push edi
push ebx
push dword [ebp - 0x20]
push esi
mov esi, dword [ebp - 0x18]
call ecx
add esp, 0x10
mov eax, dword [esi + 0x74]
movzx ecx, word [esi + 0x46]
cmp cx, word [eax + 0x18]
jae 0x5a9df0
xor edi, edi
cmp byte [eax + 1], 0
je 0x5a9f73
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
cmp byte [esi], 0
jne 0x5aa077
lea edx, [ecx + 1]
mov word [esi + 0x46], dx
cmp dx, word [eax + 0x18]
jae 0x5aa073
cmp byte [eax + 8], 0
mov ecx, dword [ebp - 0x1c]
jne 0x5a9f73
xor ebx, ebx
mov ecx, dword [ecx]
cmp byte [ecx + 8], 0
jne 0x5aa06c
movsx eax, byte [esi + 0x44]
cmp eax, 0x13
jge 0x5a9f5c
mov edx, dword [ecx + 0x40]
mov esi, dword [ebp - 0x18]
movzx esi, word [esi + 0x46]
movzx edx, word [edx + esi*2]
rol dx, 8
movzx edi, word [ecx + 0x1a]
and edx, edi
mov ecx, dword [ecx + 0x38]
mov edx, dword [ecx + edx]
mov ecx, dword [ebp - 0x18]
mov word [ecx + 0x32], bx
mov ecx, dword [ebp - 0x18]
and byte [ecx + 1], 0xf9
mov ecx, dword [ebp - 0x18]
mov word [ecx + eax*2 + 0x48], si
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x74]
movsx ecx, byte [esi + 0x44]
mov dword [esi + ecx*4 + 0x78], eax
mov word [esi + 0x46], bx
inc byte [esi + 0x44]
bswap edx
movzx eax, byte [esi + 2]
mov ecx, dword [esi + 0x14]
push eax
push esi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.005a7ff0
mov ecx, edi
add esp, 0xc
mov edi, eax
test eax, eax
je 0x5a9ed4
jmp 0x5a9f73
movsx eax, byte [esi + 0x44]
cmp eax, 0x13
jl 0x5a9f87
push 0x718366
push 0x11fcb
jmp 0x5a9d21
mov byte [esi], 1
mov edi, 0x65
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066e1f1
mov eax, edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x38]
movzx edx, byte [edi + 9]
mov edx, dword [edx + ecx + 8]
xor ecx, ecx
mov word [esi + 0x32], cx
and byte [esi + 1], 0xf9
mov esi, dword [ebp - 0x18]
movzx esi, word [esi + 0x46]
mov edi, dword [ebp - 0x18]
mov word [edi + eax*2 + 0x48], si
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x74]
mov esi, dword [ebp - 0x18]
movsx esi, byte [esi + 0x44]
mov edi, dword [ebp - 0x18]
mov dword [edi + esi*4 + 0x78], eax
mov esi, dword [ebp - 0x18]
mov word [esi + 0x46], cx
inc byte [esi + 0x44]
bswap edx
movzx eax, byte [esi + 2]
mov ecx, dword [esi + 0x14]
push eax
push esi
push dword [ebp - 0x1c]
call fcn.005a7ff0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x5a9f73
xor ebx, ebx
mov ecx, dword [ecx]
cmp byte [ecx + 8], 0
jne 0x5aa06c
movsx eax, byte [esi + 0x44]
cmp eax, 0x13
jge 0x5a9f5c
mov edx, dword [ecx + 0x40]
mov esi, dword [ebp - 0x18]
movzx esi, word [esi + 0x46]
movzx edx, word [edx + esi*2]
rol dx, 8
movzx edi, word [ecx + 0x1a]
and edx, edi
mov ecx, dword [ecx + 0x38]
mov edx, dword [ecx + edx]
mov ecx, dword [ebp - 0x18]
mov word [ecx + 0x32], bx
mov ecx, dword [ebp - 0x18]
and byte [ecx + 1], 0xf9
mov ecx, dword [ebp - 0x18]
mov word [ecx + eax*2 + 0x48], si
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x74]
movsx ecx, byte [esi + 0x44]
mov dword [esi + ecx*4 + 0x78], eax
mov word [esi + 0x46], bx
inc byte [esi + 0x44]
bswap edx
movzx eax, byte [esi + 2]
mov ecx, dword [esi + 0x14]
push eax
push esi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.005a7ff0
mov ecx, edi
add esp, 0xc
mov edi, eax
test eax, eax
je 0x5a9fea
jmp 0x5a9f73
xor edi, edi
jmp 0x5a9f73
mov word [esi + 0x46], cx
mov ecx, esi
call fcn.005a9b90
mov edi, eax
jmp 0x5a9f73
mov ecx, dword [0x72dd04]
call dword [section..00cfg]
push edi
jmp 0x5a9c99