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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov dword [esp + 0xc], edx
mov edi, ecx
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [esp + 0x38], eax
cmp byte [ecx], 0
jne 0x5a2c1f
movzx edx, byte [edi + 1]
test dl, 2
jne 0x5a2e0e
mov ecx, edi
call fcn.005a7d30
cmp eax, 0x10
je 0x5a2f1d
mov ebx, eax
test eax, eax
jne 0x5a2f28
xor ecx, ecx
inc ecx
sub ecx, dword [ebp + 0xc]
lea esi, [edi + 0x74]
mov dword [esp + 0x10], esi
mov dword [esp], edi
mov dword [esp + 0x1c], ecx
mov ebx, dword [esi]
movzx eax, word [ebx + 0x18]
mov dword [esp + 0x20], eax
lea edi, [eax - 1]
mov dword [esp + 0x18], edi
sar edi, cl
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x28], eax
mov dl, byte [ebx + 2]
movzx esi, word [ebx + 0x1a]
mov ecx, dword [ebx + 0x40]
mov dword [esp + 8], 0
mov byte [esp + 7], dl
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], ecx
xor eax, eax
dec eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edi
movzx ecx, word [ecx + edi*2]
rol cx, 8
and ecx, esi
mov eax, dword [esp + 0x28]
add ecx, eax
test dl, dl
je 0x5a2cb9
cmp byte [ecx], 0
jns 0x5a2cb8
inc ecx
cmp ecx, dword [ebx + 0x3c]
jb 0x5a2ca8
jmp 0x5a2de6
inc ecx
lea edx, [esp + 0x30]
call fcn.0058a250
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0xc]
cmp edi, esi
mov edx, ecx
mov eax, dword [ebp + 8]
sbb edx, eax
mov eax, dword [esp + 0x2c]
jge 0x5a2cf4
lea edx, [eax + 1]
mov edi, eax
mov eax, dword [esp + 0x18]
cmp edi, eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jl 0x5a2d0e
jmp 0x5a2d28
cmp esi, edi
mov edx, dword [ebp + 8]
sbb edx, ecx
jge 0x5a2d2d
mov edx, dword [esp + 8]
cmp edx, eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jge 0x5a2d4a
dec eax
mov dword [esp + 8], edx
mov dword [esp + 0x18], eax
lea edi, [eax + edx]
sar edi, 1
mov dl, byte [esp + 7]
mov esi, dword [esp + 0x24]
jmp 0x5a2c85
xor eax, eax
dec eax
jmp 0x5a2d4f
mov edx, dword [esp]
mov word [edx + 0x46], ax
cmp byte [ebx + 8], 0
jne 0x5a2fb7
movzx ecx, word [ebx + 0x18]
mov edx, eax
mov esi, dword [esp + 0x10]
jmp 0x5a2d5d
mov edi, eax
xor eax, eax
inc eax
cmp byte [ebx + 8], 0
mov ecx, dword [esp + 0x20]
jne 0x5a2f9c
cmp edx, ecx
mov dword [esp + 8], edx
jge 0x5a2d79
mov eax, dword [ebx + 0x40]
movzx eax, word [eax + edx*2]
rol ax, 8
and ax, word [ebx + 0x1a]
movzx eax, ax
jmp 0x5a2d80
movzx eax, byte [ebx + 9]
add eax, 8
mov edi, dword [esp]
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx + eax]
mov ecx, dword [esp + 8]
mov word [edi + 0x46], cx
movsx eax, byte [edi + 0x44]
cmp eax, 0x13
jge 0x5a2f77
xor ebx, ebx
mov word [edi + 0x32], bx
and byte [edi + 1], 0xf9
mov word [edi + eax*2 + 0x48], cx
mov eax, dword [edi + 0x74]
movsx ecx, byte [edi + 0x44]
mov dword [edi + ecx*4 + 0x78], eax
mov word [edi + 0x46], bx
inc byte [edi + 0x44]
bswap edx
movzx eax, byte [edi + 2]
mov ecx, dword [edi + 0x14]
push eax
push edi
push esi
call fcn.005a7ff0
add esp, 0xc
test eax, eax
mov ecx, dword [esp + 0x1c]
je 0x5a2c4d
mov ebx, eax
jmp 0x5a2fac
push 0x718366
push 0x12154
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00576b00
add esp, 0x14
mov ebx, 0xb
jmp 0x5a2f28
mov eax, dword [edi + 0x20]
mov dword [esp], edi
mov ecx, dword [edi + 0x24]
mov esi, ecx
mov edi, dword [ebp + 8]
xor esi, edi
mov edi, eax
mov ebx, dword [esp + 0xc]
xor edi, ebx
or edi, esi
jne 0x5a2e38
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
jmp 0x5a2f26
cmp eax, ebx
mov esi, ecx
sbb esi, dword [ebp + 8]
mov edi, dword [esp]
jge 0x5a2c1f
test dl, 8
jne 0x5a2f1d
add eax, 1
adc ecx, 0
xor eax, dword [esp + 0xc]
xor ecx, dword [ebp + 8]
or ecx, eax
jne 0x5a2c1f
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov word [edi + 0x32], 0
and byte [edi + 1], 0xf9
cmp byte [edi], 0
jne 0x5a2f41
mov eax, dword [edi + 0x74]
movzx ecx, word [edi + 0x46]
lea edx, [ecx + 1]
mov word [edi + 0x46], dx
cmp dx, word [eax + 0x18]
jae 0x5a2f3d
cmp byte [eax + 8], 0
jne 0x5a2f57
lea esi, [edi + 0x74]
mov ecx, dword [esi]
cmp byte [ecx + 8], 0
jne 0x5a2f57
movsx eax, byte [edi + 0x44]
cmp eax, 0x13
jge 0x5a2fcf
mov edx, dword [ecx + 0x40]
movzx ebx, word [edi + 0x46]
movzx edx, word [edx + ebx*2]
rol dx, 8
movzx edi, word [ecx + 0x1a]
and edx, edi
mov edi, dword [esp]
mov ecx, dword [ecx + 0x38]
mov edx, dword [ecx + edx]
xor ecx, ecx
mov word [edi + 0x32], cx
and byte [edi + 1], 0xf9
mov word [edi + eax*2 + 0x48], bx
mov eax, dword [edi + 0x74]
movsx ecx, byte [edi + 0x44]
mov dword [edi + ecx*4 + 0x78], eax
xor eax, eax
mov word [edi + 0x46], ax
inc byte [edi + 0x44]
bswap edx
movzx eax, byte [edi + 2]
mov ecx, dword [edi + 0x14]
push eax
push edi
push esi
call fcn.005a7ff0
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x5a2ea7
jmp 0x5a2f4a
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor ebx, ebx
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.0066e1f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov word [edi + 0x46], cx
mov ecx, edi
call fcn.005a9b90
mov ebx, eax
cmp ebx, 0x65
je 0x5a2c1f
test ebx, ebx
jne 0x5a2f28
mov ecx, edi
call fcn.0058dbc0
mov eax, dword [edi + 0x24]
xor eax, dword [ebp + 8]
mov ecx, dword [edi + 0x20]
xor ecx, dword [esp + 0xc]
xor ebx, ebx
or ecx, eax
jne 0x5a2c1f
jmp 0x5a2f28
push 0x718366
push 0x11fcb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00576b00
add esp, 0x14
mov ebx, 0xb
jmp 0x5a2fac
mov ecx, dword [esp]
mov word [ecx + 0x46], di
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor ebx, ebx
mov word [edi + 0x32], 0
jmp 0x5a2f28
mov edx, dword [esp]
or byte [edx + 1], 2
mov dword [edx + 0x20], edi
mov dword [edx + 0x24], ecx
mov word [edx + 0x32], 0
jmp 0x5a2e2a
push 0x718366
push 0x11fcb
jmp 0x5a2df0